Skip to content
Limited Time 40% off for early adopters — Get discount →

Your First Diagram

Last updated:

This guide walks you through creating your first Mermaid diagram with Mermaid Studio.

  1. Right-click on a folder in your project and select New > File

  2. Name it diagram.mmd (or use the .mermaid extension)

  3. The editor opens with a live preview panel

Type the following code:

flowchart TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Check installation]
D --> A

As you type, you’ll see:

  • Syntax highlighting for keywords, punctuation, nodes and more
  • Code completion contextually relevant suggestions for flowchart syntax and element refererences as you type
  • Live preview updating automatically
  • Error detection for invalid syntax

Mermaid Studio supports more than 20 diagram types. Here are a few to try:

sequenceDiagram
Alice->>Bob: Hello Bob!
Bob-->>Alice: Hi Alice!
pie title Project Status
"Complete" : 70
"In Progress" : 20
"Planned" : 10
mindmap
root((Project))
Planning
Development
Testing