merIDK / Diagram types / Hand-drawn diagram
Mermaid hand-drawn diagram: example and syntax
The hand-drawn look renders any flowchart, state or class diagram as a sketch, similar to a whiteboard drawing. It works well in early design docs, where a polished diagram would look more final than the idea is.
Open this example in the editor
Example code
---
config:
look: handDrawn
theme: neutral
---
flowchart LR
idea[Idea] --> sketch[Sketch]
sketch --> review{Looks good?}
review -- no --> sketch
review -- yes --> ship[Ship it]
Result
---
config:
look: handDrawn
theme: neutral
---
flowchart LR
idea[Idea] --> sketch[Sketch]
sketch --> review{Looks good?}
review -- no --> sketch
review -- yes --> ship[Ship it]Syntax quick reference
- Set it per diagram:
config: look: handDrawnin the frontmatter. - Or pick Hand-drawn in the Look menu to apply it to every diagram.
- Combine it with
theme: neutralfor a pencil-on-paper feel.
How to use it
- Open the example in the editor, or paste your own Mermaid code.
- Edit the code on the left. The preview updates as you type, and errors point to the line.
- Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.