Skip to content

ministryofjustice/marp-moj-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marp MOJ Theme

Marp (also known as the Markdown Presentation Ecosystem) provides an intuitive experience for creating beautiful slide decks.

Marp comes with various in-built themes to allow you to format the slides.

This repo applies an MoJ theme, see here for a demonstration.

Installation / Usage

The easiest way to use Marp is via the VS Code extension.

To apply the theme locally:

  1. Open Workspace Settings (JSON)
  2. Search for markdown.marp.themes
  3. Add a URL or a local path to the .css file
    • URL: refer to this discussion about linking to files on GitHub
    • Local path example: ./assets/theme_name.css (theme needs to be somewhere in the project's directory)
{
    "markdown.marp.themes": [
        "https://cdn.jsdelivr.net/gh/ministryofjustice/marp-moj-theme/themes/moj.css"
    ]
}
  1. Enable the theme in the front-matter of the Markdown document, i.e., write the following at the very beginning of the Markdown document:
---
marp: true
theme: moj
---

For additional settings (such as size or paginate), follow the official documentation.

Marp CLI

Marp also comes with a CLI interface

  1. Put the .css theme file in the directory of your Markdown document
  2. Use the --theme parameter during the export and specify the path to the .css file
    • e.g.:
marp --theme ./assets/theme_name.css document.md -o document.pdf

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages