Instruction file imported from Pukujan/design-bakery (
.cursor/rules/blog-mermaid.mdc). Copyright stays with the author.
Blog Mermaid
Before editing Mermaid init, MermaidDiagram, or .blog-mermaid-chart CSS, read:
guidelines/agent-devlog-mermaid.md
Index: guidelines/agent-devlog-index.md
Quick rules (full history in that file)
- Use:
theme: 'default',startOnLoad: false,mermaid.render()per chart, wrapper classblog-mermaid-chart - Do not:
theme: 'base',contentLoaded(), post-render SVG JS,#mermaid-*CSS selectors - Dark arrows: edge-only
themeVariablesviaconfigureMermaid(isDark)inMermaidDiagram.tsx(re-render on theme toggle) - Colors: change hex in
globals.cssunder.blog-mermaid-chartonly - Loading:
.blog-mermaid-viewport--loadingreservesmin-height: min(70vh, 520px)until SVG measures; do not zerochartSizeunlesscharttext changed - Test: http://localhost:5300/endtoend-engineer/blogs/1 (use port from Vite log if 5300 is busy)