Icons

Rich nodes and icons

A rich node is a card with an icon, a title, a subtitle, badges, and a status light, written in one line of text inside a normal Mermaid flowchart label. It’s still plain Mermaid text, so it lives in your code like any other node. Rich nodes and every icon library work on every plan, except the Gen AI icons, which need Pro or Pro Max.

rich-nodes.mmd
flowchart LR
  WEB["@icon:lucide:globe **Web app** | sub:React 19 | badge:SPA:indigo"]
  API["@icon:aws:lambda **Orders API** | sub:Python 3.12 | badge:256MB:emerald | status:healthy"]
  DB[("@icon:logos:postgresql **Orders DB** | sub:Multi-AZ | status:warning")]

  subgraph CLOUD["@icon:logos:aws **AWS** | sub:us-east-1"]
    API
    DB
  end

  WEB -->|HTTPS| API --> DB

On a subgraph line the same syntax makes a compact group title with an icon, for a cloud account, a region, a network, or a cluster.

Label syntax

PartMeaning
@icon:set:nameThe icon, such as @icon:aws:lambda. Put it first. Without a title, the icon’s name is used: @icon:logos:redis alone makes a card called “Redis”.
**Title**The bold title (the asterisks are optional).
| sub:textA smaller line under the title: a technology, a version, a region.
| badge:text:colorA pill; add as many as you like. Colours: indigo, emerald, amber, sky, rose, violet, cyan, slate, purple. Without a colour, or with one not in the list, it’s indigo.
| status:valueA status light: healthy (green), warning (amber), error (red), active (cyan), or pending (grey).

The whole label goes in double quotes, with the parts separated by |. Every Mermaid shape works: ["…"] for a box, [("…")] for a database, (["…"]) for a stadium, {{"…"}} for a hexagon. Type a rich node in the code and the card appears on the canvas as you type.

Type a rich node’s label in the code: the card appears as you type.

The rich node builder

The builder writes the line for you, so you don’t need to remember icon names.

  1. Click Rich node above the code, or Rich node and icon builder (the boxes icon) in the left rail. In Manual mode, Icon node in the canvas toolbar opens it too.
  2. Find an icon: search by name or abbreviation, or browse the libraries on the left and narrow them with the category buttons. Click an icon to choose it; a title still at its placeholder takes the icon’s name.
  3. Fill in the card:
    • Node ID: the node’s name in the code (letters, digits, and _).
    • Shape: rectangle, database, stadium, hexagon, or Group (subgraph), which writes a group with the icon in its title for you to put nodes in.
    • Title and Subtitle.
    • Status: healthy, warning, error, active, pending, or none.
    • Badges: type a label, pick a colour, and add it; remove one with its bin button.
  4. Check the Live preview and the Generated macro (the line it will write; Copy copies it).
  5. Choose Insert rich node to add the line to the code after the cursor, or Insert icon only to add just @icon:set:name to a label you’ve already written.

To give a node that’s already on the canvas an icon, select it in Manual mode and choose Make icon node: the builder opens for that node, and Apply to node keeps its id, its place, and its connections. The builder’s Snippets tab inserts snippets.

Related guide: Rich nodes and icons: cards with an icon, a subtitle, badges and a status light.

In the builder, choose an icon from a search, fill in the card, and insert it.

Icon libraries

The builder lists the icons by library. Popular comes first, then:

  • AWS, Google Cloud, Azure, and Kubernetes: the providers’ official icons, with the essentials first and then the whole catalogue by category.
  • Collections by subject: diagram shapes, databases and storage, languages and frameworks, cloud and hosting, networking and APIs, messaging and workflows, DevOps and containers, observability and security, data and AI, and OS, devices and SaaS.
  • All brand logos: Logos, Devicon, and Simple Icons.
  • General icons: Flowgraph’s own shapes, Lucide, and Tabler.
  • Gen AI: Claude, ChatGPT, Gemini, and 350+ more, with Pro or Pro Max. On Free they show a lock, and choosing one offers an upgrade.

Search looks across every library at once. It finds products by name or abbreviation, such as k8s, pg, vnet, or lb, and when matches are equally good, it lists the official cloud icons first.

Icon sets in the code

An icon is written as its set and its name, such as aws:lambda. The sets are:

  • aws: AWS service icons
  • gcp: Google Cloud service icons
  • azure: Azure service icons
  • k8s: Kubernetes resource icons
  • logos: Brand logos in colour (Logos)
  • devicon: Languages, frameworks and tools (Devicon)
  • simple-icons: Brand logos in one colour (Simple Icons)
  • lucide: General icons (Lucide)
  • tabler: General icons (Tabler)
  • fg: Flowgraph’s own shapes: flowchart, BPMN, UML and C4, storage, network, devices, and architecture symbols
  • genai: Gen AI models and tools, such as Claude, ChatGPT and Gemini: Pro and Pro Max

If an icon doesn’t show

  • Check the set and the name in the builder: @icon:aws:lambda needs the set (aws) and the exact name.
  • Gen AI icons need Pro or Pro Max. Without it, the status bar says Gen AI icons need Pro.
Browse a library and its categories, then search across every library at once.

Architecture diagrams

Mermaid’s architecture-beta diagrams draw services, groups, and the connections between them, and they use the same icon sets directly, written as set:name in brackets:

architecture-beta
  group cloud(logos:aws)[AWS]
  service api(aws:lambda)[Orders API] in cloud
  service db(logos:postgresql)[Orders DB] in cloud
  api:R --> L:db
  • group id(icon)[Title] draws a boundary; service id(icon)[Title] in group puts a service inside it.
  • api:R --> L:db connects the right side of api to the left side of db. The sides are T, B, L, and R.
  • Use the builder’s search to find an icon’s name, then write it without @icon:.

Architecture diagrams are edited as code, and Mermaid lays them out. For a card with a subtitle, badges, and a status light, use rich nodes in a flowchart instead. Related guide: How to draw an AWS architecture diagram with Mermaid.

Add a service to an architecture diagram in the code: it’s drawn with its icon.