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

Turn plain Mermaid boxes into readable cards with official cloud icons, brand logos, subtitles, badges and status lights, written in one line or built with the Rich node builder.

Editor and styling · Updated November 25, 2026 · 4 min read

A box that says "Orders API" tells the reader its name. A card with the Lambda icon, "Python 3.12" underneath and a green status light tells them what it is, what it runs on and whether it's healthy. Flowgraph Studio calls these rich nodes. They are still plain Mermaid: one line of text inside a normal label. This guide shows the syntax, the builder that writes it for you, and the icon libraries you can draw from.

Plan: Free, Pro and Pro Max. Rich nodes and every icon library work on every plan, except the Gen AI icons (Claude, ChatGPT, Gemini and 350+ more), which need Pro or Pro Max.

The syntax

A rich node is a flowchart node whose label, in double quotes, starts with an icon and adds parts separated by |:

API["@icon:aws:lambda **Orders API** | sub:Python 3.12 | badge:256MB:emerald | status:healthy"]
Part What it does
@icon:set:name The icon, such as @icon:aws:lambda. Put it first.
**Title** The card's title. The asterisks are optional.
sub:text A smaller line under the title: a technology, a version, a region.
badge:text:color A pill. Add as many as you like.
status:value A status light: healthy, warning, error, active or pending.

Badge colours are indigo, emerald, amber, sky, rose, violet, cyan, slate and purple. A badge without a colour is indigo. If you leave out the title, the icon's name is used, so @icon:logos:redis alone makes a card called "Redis".

Every Mermaid shape works with the shorthand: [("...")] for a database, (["..."]) for a stadium, {{"..."}} for a hexagon. Here are a few together:

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"]
  CACHE["@icon:logos:redis **Cache** | sub:Redis 7 | status:active"]
  DB[("@icon:logos:postgresql **Orders DB** | sub:Multi-AZ | status:warning")]

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

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

Groups with an icon

On a subgraph line, the same shorthand makes a compact group title with a small icon, as with the AWS group above. Use it for real boundaries: a cloud account, a region, a VPC, a cluster or a team.

subgraph VPC["@icon:aws:virtual-private-cloud **Production VPC** | sub:us-east-1"]

Build one without typing

You don't need to remember icon names. In the editor, click Rich node above the code, or Rich node and icon builder in the left rail. The Rich node builder opens:

  1. Find an icon. Search by product name or abbreviation, such as k8s, pg or vnet, or browse the libraries on the left. Each library has categories to narrow it down.
  2. Fill in the card. Set the Node ID, Shape (rectangle, database, stadium, hexagon, or a group), Title, Subtitle, Status and Badges.
  3. Check the preview. Live preview shows the card as it will look, and Generated macro shows the line it will write, with Copy beside it.
  4. Insert it. Insert rich node adds the line to your code. Insert icon only adds just @icon:set:name, to put into a label you've already written.

The Rich node builder: icon libraries on the left, AWS API Gateway chosen, and a live preview of the card with its subtitle, a healthy status light and two badges

The builder also has a Snippets tab: reusable groups of nodes and connections, your own and some built-in Starters, inserted with new ids so nothing clashes with your diagram.

Turn a box into an icon node on the canvas

In Manual mode, select a node on a flowchart and choose Make icon node in its toolbar. The builder opens as Make it an icon node: pick an icon, adjust the text, and choose Apply to node. The node keeps its place and its connections. On a node that already has an icon, the button reads Change icon, and Remove icon beside it takes the icon off. The same toolbar edits the subtitle and the status light directly.

The icon libraries

Library What's in it
AWS, Google Cloud, Azure, Kubernetes The providers' official service icons, with the essentials first
All brand logos Logos, Devicon and Simple Icons: databases, languages, frameworks, tools and SaaS
General icons Lucide, Tabler, and diagram shapes for people, devices and concepts
Gen AI Claude, ChatGPT, Gemini and 350+ more AI products (Pro and Pro Max)

The prefixes you'll see most are aws:, gcp:, azure:, k8s:, logos:, lucide: and genai:. Search ranks the official cloud icons first when they match equally well.

On Free, you can browse the Gen AI icons in the builder. If a diagram uses one, the status bar shows Gen AI icons need Pro, with a link to upgrade.

Icons in architecture diagrams

Mermaid's architecture-beta diagrams use the same icon sets directly, written as set:name without @icon::

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

Tips

  • Icons for components, plain boxes for steps. Services, databases, queues and tools read better with an icon. Decisions, abstract steps and people often don't need one.
  • Keep subtitles short. One fact: a version, a runtime or a region.
  • Use status lights on purpose. In a design review they can mark what's new, at risk or broken. In documentation they can go stale, so leave them off unless someone keeps them current.
  • Badges for facts readers compare, such as memory size, version or tier.

For a full cloud example, see How to draw an AWS architecture diagram with Mermaid. For the reference, see Rich nodes and icons in the docs.

More guides