You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Expert on Markdown and Marp presentation framework. Creates, edits, and troubleshoots Marp slide decks with best practices for layouts, themes, speaker notes, Mermaid diagrams, and PDF/HTML generation.
4
+
---
5
+
6
+
You are an expert on Markdown and the Marp presentation framework (https://marp.app/).
7
+
8
+
## Core Expertise
9
+
10
+
- Marp Markdown syntax and directives
11
+
- Slide deck structure and frontmatter configuration
12
+
- Built-in themes (default, gaia, uncover) and custom theming
13
+
- Background images, image positioning, and filters
14
+
- Speaker notes using HTML comments (`<!-- -->`)
15
+
- Mermaid.js diagram integration
16
+
- Multi-column layouts and CSS customization
17
+
- Marp CLI for PDF, PPTX, and HTML generation
18
+
19
+
## Project Conventions
20
+
21
+
- All slides use Markdown with Marp framework
22
+
- Required frontmatter:
23
+
```yaml
24
+
---
25
+
marp: true
26
+
theme: custom-default
27
+
---
28
+
```
29
+
- Store slide decks in the `slides/` directory
30
+
- Store custom themes in `slides/themes/`
31
+
- Store images in `slides/img/`
32
+
- Use HTML comments for speaker notes: `<!-- Speaker notes here -->`
Create a Marp presentation site that can be built and published on [GitHub Pages] using this minimal template. The site features:
6
6
7
-
- Marp integration
7
+
- Marp integration with CSS variable-based theming
8
8
- A GitHub Pages / Actions workflow for build and publish ([See a preview](http://chris-ayers.com/marp-slides-template/))
9
9
- A DevContainer/CodeSpace configuration with Marp and Markdown preview extensions
10
-
-Chrome installation for PDF and PowerPoint slide creation on Linux
10
+
-Support for PDF and PowerPoint export via Marp CLI v4
11
11
12
12
## Customization
13
13
@@ -22,22 +22,99 @@ Feel free to customize the sites created with this template as you like!
22
22
23
23
This template includes four custom themes in the `slides/themes` folder:
24
24
25
-
- custom
26
-
- custom-default (based on the built-in default theme)
27
-
- custom-gaia (based on the built-in gaia theme)
28
-
- custom-uncover (based on the built-in uncover theme)
25
+
-**custom** - A minimal base theme
26
+
-**custom-default** - Based on the built-in default theme (recommended)
27
+
-**custom-gaia** - Based on the built-in gaia theme
28
+
-**custom-uncover** - Based on the built-in uncover theme
29
29
30
-
To use a custom theme, edit the relevant css file and add its reference in the front matter of `Slides.md`. For example, to use `custom-default` add the following to the `Slides.md` front matter:
30
+
### Theme Customization with CSS Variables
31
+
32
+
All themes support CSS variable customization (Marp v4+ best practice):
33
+
34
+
```css
35
+
:root {
36
+
--color-background: #ffffff;
37
+
--color-foreground: #333333;
38
+
--color-highlight: #0366d6;
39
+
--color-dimmed: #6a737d;
40
+
}
41
+
```
42
+
43
+
### Available Theme Classes
44
+
45
+
| Class | Description |
46
+
|-------|-------------|
47
+
|`lead`| Centered title slide layout |
48
+
|`invert`| Dark theme for emphasis slides |
49
+
|`columns`| Two-column grid layout |
50
+
|`columns3`| Three-column grid layout |
51
+
|`small`| Smaller text for dense content |
52
+
53
+
Use with `<!-- _class: classname -->` directive, or combine: `<!-- _class: lead invert -->`
54
+
55
+
### Using a Theme
56
+
57
+
Add the theme reference in the frontmatter of your slide deck:
31
58
32
59
```markdown
33
60
---
34
61
marp: true
35
62
theme: custom-default
63
+
paginate: true
64
+
math: mathjax
36
65
---
37
66
```
38
67
39
68
For additional themes, add them to the devcontainer and follow the [Marp custom theme documentation](https://marpit.marp.app/theme-css).
> **Note:** Marp CLI v4 requires Node.js 18+ and supports both Chrome and Firefox for rendering.
145
+
53
146
## Licensing and Attribution
54
147
55
148
This repository is licensed under the [MIT License]. Reuse or extend the code as you wish, but include the original license. The deployment GitHub Actions workflow is based on GitHub's starter workflows.
56
149
57
150
## Resources
58
151
59
152
-[Use this template](https://github.com/codebytes/marp-slides-template/generate)
- Marp Official Repository: [https://github.com/marp-team/marp](https://github.com/marp-team/marp)
66
-
- Marp Official Documentation: [https://marpit.marp.app/markdown](https://marpit.marp.app/markdown)
67
-
- Marp for VS Code Documentation: [https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode](https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode)
0 commit comments