slidevjs / slidev
slidev
Create developer slide decks with Slidev using Markdown, Vue components, code highlighting, and animations.
Install
npx skills add https://github.com/slidevjs/slidev --skill slidevSlidev - Presentation Slides for Developers
Web-based slides maker built on Vite, Vue, and Markdown.
When to Use
- Technical presentations or slidedecks with live code examples
- Syntax-highlighted code snippets with animations
- Interactive demos (Monaco editor, runnable code)
- Mathematical equations (LaTeX) or diagrams (Mermaid, PlantUML)
- Record presentations with presenter notes
- Export to PDF, PPTX, or host as SPA
- Code walkthroughs for developer talks or workshops
Prerequisites
Slidev is a Node.js project. Before creating or running a deck, check that the machine has:
- Node.js >= 22.12.0:
node -v. If it is missing or older, install the LTS release from https://nodejs.org or use a version manager such asnvmorfnm. - pnpm (recommended package manager):
pnpm -v. If it is missing, runnpm i -g pnpmorcorepack enable. npm, yarn, and bun also work; replacepnpmin the commands below.
Do not assume a development setup exists. If either check fails, walk the user through the installation before running any Slidev command.
Quick Start
Verify: After pnpm run dev, confirm slides load at http://localhost:3030. After pnpm run export, check the output PDF exists in the project root.
Basic Syntax
---separates slides- First frontmatter = headmatter (deck config)
- HTML comments = presenter notes
Core References
Feature Reference
Code & Editor
Diagrams & Math
Layout & Styling
Animation & Interaction
Syntax Extensions
Presenter & Recording
Export & Build
Export prerequisite: pnpm add -D playwright-chromium is required for PDF/PPTX/PNG export. If export fails with a browser error, install this dependency first.
Editor & Tools
Lifecycle & API
Common Layouts
Resources
- Documentation: https://sli.dev
- Theme Gallery: https://sli.dev/resources/theme-gallery
- Showcases: https://sli.dev/resources/showcases