Render Mermaid diagrams as beautiful SVGs or ASCII art
Ultra-fast, fully themeable, zero DOM dependencies. Built for the AI era.
English | 中文
A Mermaid diagram rendering skill for AI, supporting both SVG and ASCII output formats to make your documentation more vivid.
- 📊 Multi-format Support: SVG and ASCII rendering export
- 🎨 Rich Themes: 15 built-in themes for different scenarios
- 📈 Full Diagram Support: Flowchart, Sequence, State, Class, ER and more
- ⚡ High Performance: Batch parallel rendering
- 📚 Ready to Use: Complete templates and detailed documentation
| Light Themes | Dark Themes | Other |
|---|---|---|
| zinc-light | zinc-dark | nord |
| tokyo-night-light | tokyo-night | nord-light |
| cappuccin-latte | tokyo-night-storm | dracula |
| github-light | cappuccin-mocha | one-dark |
| solarized-light | github-dark | |
| solarized-dark |
Seamlessly integrates with the following AI coding environments:
- Claude Code
- Cursor
- Gemini CLI
- Antigravity
- OpenCode
- Codex
- qoder
npx skills add https://github.com/imxv/pretty-mermaid-skills --skill pretty-mermaidcd Pretty-mermaid
node scripts/themes.mjsNote: Dependencies will be auto-installed on first run. Just ensure Node.js is available.
node scripts/themes.mjsnode scripts/render.mjs \
--input diagram.mmd \
--output output.svg \
--theme tokyo-nightnode scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./output \
--theme draculaCheck the 5 template files in assets/example_diagrams/:
flowchart.mmd- Flowchartsequence.mmd- Sequence Diagramstate.mmd- State Diagramclass.mmd- Class Diagramer.mmd- ER Diagram
See SKILL.md for detailed usage guide.
- Node.js 14+
MIT License
Based on beautiful-mermaid
