How to use Themes
The easy way (with VS Code)
The easiest and fastest solution is to use the Marp for VS Code extension.
- Find your theme in our library (Dracula for example).
- Copy the url of the CSS file.
- Add a
.vscode/settings.json
file in your project. - Add the following line in your
.vscode/settings.json
file (replace theDracula url
with your theme url):
{
"markdown.marp.themes": [
"https://raw.githubusercontent.com/dracula/marp/master/dracula/dracula.css"
]
}
- Play with your theme.
The hard way (with Marp CLI)
This solution does not require the use of VS Code, you must have the Marp CLI on your workstation.
- Find your theme in our library (Dracula for example).
- Download the css file from the url of the theme in your project directory.
- Run the following command in your project directory (replace
dracula.css
with css theme file name):
# Export in HTML
marp --theme ./dracula.css ./your-slides.md -o your-slides.html
# Export in PDF
marp --theme ./dracula.css ./your-slides.md -o your-slides.pdf