Mermaid Mindmap Examples
Mindmaps organize ideas around one central topic. They work well for brainstorming notes, study outlines, and planning documents.
A mindmap starts with mindmap. Indentation defines the hierarchy: each line indented deeper than the line above becomes its child.
System design topics
The root uses ((text)) for a circle. Everything else is plain text, and indentation alone builds the tree.
Rendering preview…
mindmap
root((System design))
Storage
SQL database
Object storage
Cache
Traffic
Load balancer
CDN
Rate limiting
Reliability
Retries
Circuit breaker
MonitoringProject kickoff map
)text( draws a cloud shape for the root. Use mindmaps like this to collect goals, risks, and owners before writing a formal plan.
Rendering preview…
mindmap
root)Q1 launch(
Goals
Self-serve billing
Lower churn
Risks
Payment provider migration
Holiday code freeze
Owners
Backend team
Design teamMindmap syntax cheat sheet
| Syntax | Meaning |
|---|---|
mindmap | Start a mindmap |
| Indentation | Defines parent and child nodes |
id[Text] | Square node |
id(Text) | Rounded node |
id((Text)) | Circle |
id)Text( | Cloud |
id))Text(( | Bang |
id{{Text}} | Hexagon |
Common mindmap mistakes
- A mindmap has exactly one root. A second line at the root's indentation level causes an error.
- Mixing tabs and spaces makes the hierarchy unpredictable. Use spaces only.
Mindmap FAQ
Can I add icons to mindmap nodes?
Yes, with
::icon(fa fa-book) on the line after a node, but the icon font must be loaded on the page that renders the diagram.Why is a node attached to the wrong parent?
Mermaid attaches each line to the closest line above it that is indented less. Check that siblings use exactly the same number of spaces.
Keep going
- Embed Mermaid diagrams in Markdown
- Open the free Mermaid editor to write your own diagram with live preview.
More Mermaid examples
- Mermaid flowchart examples
- Mermaid sequence diagram examples
- Mermaid er diagram examples
- Mermaid class diagram examples
- Mermaid state diagram examples
- Mermaid gantt chart examples
- Mermaid pie chart examples
Last updated 2026-11-28.