All diagram types Open editor

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

How to use it

  1. Open the example in the editor, or paste your own Mermaid code.
  2. Edit the code on the left. The preview updates as you type, and errors point to the line.
  3. Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.

More diagram types