Skip to content

🎨 A dark theme for Marp / Marpit slides ecosystem with a custom highlight.js theme.

License

Notifications You must be signed in to change notification settings

noraj/cybertopia-marp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cybertopia theme for Marp

A dark theme for Marp / Marpit slides ecosystem using the Cybertopia Saturated highlight.js theme.

🗒️ 📷
Example of title page with image
Example of text
Example of code block

Installation

After the installation is complete, your slide frontmatter should at least contain this:

---
marp: true
theme: cybertopia
class: invert
---

For VS Code / Code OSS / VSCodium

  1. You already have Marp for VS Code installed.
  2. Open VS Code settings (CTRL + ,).
  3. Search markdown.marp.themes and clikc Add element.
  4. Add this link: https://raw.githubusercontent.com/noraj/cybertopia-marp/master/themes/cybertopia.css.

Alternatively, you can also edit .vscode/settings.json on a per project basis, and add this if the theme was copied locally…

{
    "markdown.marp.themes": [
        "./themes/cybertopia.css"
    ]
}

… or this if you want to fetch the theme remotly:

{
    "markdown.marp.themes": [
        "https://raw.githubusercontent.com/noraj/cybertopia-marp/master/themes/cybertopia.css"
    ]
}

For Marp CLI

To use the theme with Marp CLI:

  1. Either clone the repository somewhere https://github.com/noraj/cybertopia-marp.git or download a Github ZIP archive and uncompress it.
  2. Copy themes/cybertopia.css file to your marp project.
  3. When using the Marp CLI, you may have to specify the theme you are using with the --theme cybertopia.css option.

For example, on this repository:

  • Live rendering: marp ./slides.md -s -I ./
  • Generate HTML: marp ./slides.md --theme-set ./themes -o index.html
  • Generate PDF: marp ./slides.md --theme-set ./themes --pdf --allow-local-files

Demo

Demo slideshow: https://noraj.github.io/cybertopia-marp/

About

🎨 A dark theme for Marp / Marpit slides ecosystem with a custom highlight.js theme.

Topics

Resources

License

Stars

Watchers

Forks