Files
StudyDiary-20261009/08-Inbox/marp/docs/23.SlidesCustomTheme.md
CrazyJasonwell e97be9ac8c commit all
2026-10-09 22:06:40 +08:00

861 B
Executable File

title, parent, created, updated
title parent created updated
Slides Custom Themes Features 2025-09-09T19:23 2025-09-22T13:27

Use custom theme CSS

You can register and use custom theme CSS for Marpit / Marp Core by setting ThemePath, that includes relative paths to local files in the current vault. The registered theme can use by specifying theme name in theme global directive.

Theme

Theme.css:

/* @theme your-theme */

@import 'default';

section {
  background: #fc9;
}

Slides.md:

---
theme: your-theme
---

# Use your own theme

---

# Second Slide

Markdown preview will reload updated theme CSS automatically when you edited the registered local CSS file.