beautiful-mermaid: Mermaid diagrams that match the UI
Render Mermaid as themed SVG or ASCII. Vercel themes, Geist, rank-by-rank animation, no DOM dependency. I open it when a diagram has to look like the product.
beautiful-mermaid renders Mermaid diagrams as SVG or as ASCII. @vercel/beautiful-mermaid on npm. It is Vercel’s fork of the Craft library, with Vercel dark and light themes, Geist, and animation that draws the diagram rank by rank. Flowcharts, state, sequence, class, and ER. No DOM dependency, so it can run somewhere other than a browser. MIT licensed.
Why it stays bookmarked
Default Mermaid looks like a document from a tool, dropped into a page that tried harder. I reach for this when the diagram is part of the interface and it should use the same type and the same colors as everything around it. ASCII output is the bonus. The same source can render in a terminal, which is where half my notes already live.
The motion craft I compare it with is animations.dev. A diagram that animates for no reason is worse than a static one. This library at least lets you turn that on deliberately.