# Mermaid Diagrams Kami turns Mermaid text into editorial, Kami-styled diagrams using [beautiful-mermaid](https://github.com/lukilabs/beautiful-mermaid) (MIT). Instead of hand-tuning SVG coordinates, describe a diagram in Mermaid and let the pipeline produce a parchment / ink-blue diagram that drops into any document. ## Two paths | Path | Surface | Renderer | Diagram types | |------|---------|----------|---------------| | **PDF** | one-pager / long-doc / equity-report etc. | WeasyPrint (no JS) | flowchart, state, sequence, class, ER | | **Browser** | any page running beautiful-mermaid (e.g. ) | beautiful-mermaid in the browser | all of the above + xychart | The split exists because WeasyPrint does not execute JavaScript and applies inline SVG only partially. The graph types carry their colors on inline presentation attributes, which survive normalization to static hex. `xychart-beta` drives its colors through `