beautiful-mermaid is a TypeScript library that renders Mermaid diagrams as SVGs or ASCII art with extensive theming capabilities. It supports five diagram types (flowcharts, state, sequence, class, and ER diagrams) and features 15 built-in themes, Shiki compatibility for VS Code themes, and a two-color foundation system using CSS custom properties for live theme switching. The library offers both rich SVG output for UIs and ASCII/Unicode rendering for terminals, with zero DOM dependencies and fast performance.
Table of contents
Why We Built ThisFeaturesInstallationQuick StartThemingSupported DiagramsASCII OutputAPI ReferenceAttributionLicenseSort: