Skip to content

AI Agent Skill to generate and render beautiful Mermaid diagrams as SVG or terminal ASCII — 15 themes, 6 diagram types, batch CLI, no browser.

2.1 KB
Raw Blame

Pretty Mermaid Theme Gallery

Use this gallery to compare every built-in theme against the same flowchart. Light themes work well for print and white documentation surfaces; dark themes work well for developer tools, dark READMEs, and presentations. The shared Mermaid source is available in assets/theme_gallery/source.mmd.

Regenerate all previews after a theme or renderer change:

npm run gallery

Light themes

zinc-light tokyo-night-light
zinc-light theme tokyo-night-light theme
catppuccin-latte nord-light
catppuccin-latte theme nord-light theme
github-light solarized-light
github-light theme solarized-light theme

Dark themes

zinc-dark tokyo-night
zinc-dark theme tokyo-night theme
tokyo-night-storm catppuccin-mocha
tokyo-night-storm theme catppuccin-mocha theme
nord dracula
nord theme dracula theme
github-dark solarized-dark
github-dark theme solarized-dark theme
one-dark
one-dark theme

Custom colors

Use a built-in theme as a starting point or supply explicit colors:

node scripts/render.mjs \
  --input diagram.mmd \
  --output custom.svg \
  --bg '#0f172a' \
  --fg '#e2e8f0' \
  --accent '#38bdf8' \
  --line '#818cf8'

See the theme reference for every color role and selection guidance.