mermaid
SKILL.md
Mermaid Diagram Skill
This skill provides guidance on creating beautiful, professional Mermaid diagrams that render correctly on GitHub and work well in both light and dark mode.
Core Principles
- Use dark fills with light strokes — Ensures readability in both light and dark mode
- Set subgraph fills to
none— Allows subgraphs to adapt to any background - Use rounded shapes —
([text])for stadium shapes,((text))for circles - No Font Awesome icons — GitHub doesn't support
fa:fa-*icons, they render as text - Quote subgraph labels — Use
subgraph Name["Label Text"]syntax - Define classDef styles at the top — Keep all styling together for maintainability
The Golden Rule: Dark Fills + Light Strokes
The key insight for dark/light mode compatibility: