Skip to content

davila7/claude-code-templates / cli-tool/components/skills/creative-design/marp-slide

marp-slide

Verified

Create professional Marp presentation slides with 7 beautiful themes (default, minimal, colorful, dark, gradient, tech, business). Use when users request slide creation, presentations, or Marp documents. Supports custom themes, image layouts, and "make it look good" requests with automatic quality improvements.

references/marp-syntax.md

View on GitHub
# Marp Basic Syntax Reference

Basic Marp syntax based on official documentation.

## Front Matter (Directives)

### Basic Structure

```markdown
---
marp: true
theme: default
paginate: true
---
```

### Main Global Directives

| Directive | Description | Example Values |
|-----------|-------------|----------------|
| `marp` | Enable Marp functionality | `true` |
| `theme` | Specify theme | `default`, `gaia`, `uncover` |
| `size` | Slide size (Marp Core extension) | `16:9`, `4:3`, `A4` |
| `paginate` | Show page numbers | `true`, `false` |
| `header` | Header for all slides | Any text |
| `footer` | Footer for all slides | Any text |
| `backgroundColor` | Background color | `#fff`, `white` |
| `backgroundImage` | Background image | `url('image.png')` |
| `color` | Text color | `#000`, `black` |
| `class` | Apply CSS class | `lead`, `invert` |

### Size Directive (Marp Core)

```markdown
---
size: 16:9
---
```

Available sizes:
- `16:9` (1280x720, default)
- `4:3` (960x720)
- `A4` (210mm x 297mm)

### Page-Specific Directives

To change settings per slide, use `<!-- directive_name: value -->` format:

```markdown
<!-- _class: lead -->
<!-- _backgroundColor: black -->
<!-- _color: white -->

# Apply only to this slide
```

**Meaning of underscore `_`**:
- Without `_`: Apply to all following slides
- With `_`: Apply to current slide only

## Slide Breaks

```markdown
---

# First Slide

---

# Next Slide

---
```

`---` (horizontal rule) switches to a new slide.

## Headers and Footers

### Global Settings

```markdown
---
header: 'Lecture Name'
footer: 'October 2024'
---
```

### Per-Slide Settings

```markdown
<!-- header: 'Section 1' -->
<!-- footer: 'Page number display' -->
```

### Disable

```markdown
<!-- header: '' -->
<!-- footer: '' -->
```

## Pagination (Page Numbers)

```markdown
---
paginate: true
---
```

Display position and style vary by theme.

Hide on specific slide:
```markdown
<!-- paginate: false -->
```

Or:
```markdown
<!-- _paginate: false -->
```

## Inline Styles

### Style Specification in Markdown

```markdown
---
marp: true
---

<style>
section {
  background-color: #f0f0f0;
}

h1 {
  color: #333;
}
</style>

# Slide
```

### Scoped Style

Apply style to specific slide only:

```markdown
<style scoped>
h1 {
  color: red;
}
</style>

# Red heading on this slide only
```

## Math Formulas (Marp Core Extension)

Supports Pandoc-style math formulas:

### Inline Math

```markdown
$E = mc^2$
```

### Block Math

```markdown
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
```

## Emoji (Marp Core Extension)

```markdown
:smile: :+1: :sparkles:
```

Supports GitHub Emoji notation.

## Comments

HTML comments are not rendered:

```markdown
<!-- This is a comment -->
```

Directives are also written in comment format:

```markdown
<!-- _class: lead -->
```

## Official Reference Links

For details, refer to official documentation:

- **Directives List**: https://marpit.marp.app/directives
- **Marp Core Features**: https://github.com/marp-team/marp-core
- **Theme CSS Specification**: https://marpit.marp.app/theme-css
- **Official Site**: https://marp.app/

## Common Configuration Examples

### Basic Setup

```markdown
---
marp: true
theme: default
size: 16:9
paginate: true
---
```

### Title Slide

```markdown
---
marp: true
theme: default
---

<!-- _class: lead -->
<!-- _paginate: false -->

# Presentation Title

Presenter Name
```

### Section Breaks

```markdown
<!-- _class: lead -->

# Chapter 2

New Section

---

## Regular Slide
```

### Custom Background Color

```markdown
<!-- _backgroundColor: #e3f2fd -->

# Slide with Light Blue Background
```
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall