My diagram looks different after the update
Symptomβ
A diagram made before October 2026 has new shapes, colors or a different arrangement, although nobody changed its code.
Causeβ
The app moved to Mermaid 12, which changed the default look and layout of flowchart, sequence, class, state, ER and requirement diagrams. The official Mermaid Live Editor changed the same way. Your diagram code is unchanged, and nothing is broken.
Solutionβ
To bring back the previous layout and shapes, add these lines to the top of the diagram code:
---
config:
layout: dagre
look: classic
---
- Hover over the diagram and select Edit diagram.
- Paste the lines above the first line of the code. If the code already starts with a
---block, addlayoutandlookunder itsconfig:instead. - Select Save and close.
For sequence diagrams, look: classic alone is enough. Don't add layout to mindmaps. To restore the previous colors too, see Keep the previous look.
Relatedβ
- Themes, looks and layouts: every theme, look and layout.
- What's new: what else came with Mermaid 12.