mermaid block and Holocron renders it as an SVG diagram. Colors come from your site theme, so diagrams switch with dark mode and follow any CSS variables you override.1234567891011121314```mermaid flowchart TB subgraph source[Your repo] mdx[MDX pages]:::blue config[docs.json]:::blue end plugin[Holocron Vite plugin]:::purple site[Docs site]:::green cache[(holocron-cache.json)]:::amber mdx --> plugin config --> plugin plugin -->|build| site plugin -.-> cache ```
:::blue, :::green, :::purple, :::pink, :::red, :::amber, :::orange or :::teal to a node to give it a category color. Use class <subgraph> green for subgraphs. No classDef is needed, and the colors adapt to dark mode.classDef with the same name wins over the built-in color, so existing diagrams keep their own styles.actions to always show or always hide them, and placement to move them: top-left, top-right, bottom-left or bottom-right (the default).1234```mermaid actions={true} placement="top-right" flowchart LR A --> B ```
--foreground, --background, --primary and the semantic colors --blue, --green, and so on. Override them in your CSS and diagrams follow. To change only diagrams, set pele variables on .mermaid-diagram:1234.mermaid-diagram { --pele-line: var(--primary); --pele-radius: 4px; }