2026-10-06 - mermaid-12-classic-layout
Summary
Mermaid 12 changed three flowchart defaults: the ELK layout engine replaced dagre, the neo look (drop shadows, orthogonal edges) replaced classic, and the label wrapping width fell from 200px to 120px. The first Mermaid CLI 12 rebuild of these diagrams picked up all three, so labels broke mid-word, most diagrams became narrower and taller, and nodes gained light shadows on dark backgrounds. The build now pins the Mermaid 11 behavior, so the diagrams match their earlier layout.
Changes
-
mermaid-config.json— addslayout: dagre,look: classic, andflowchart.wrappingWidth: 200. -
scripts/build-diagrams.mjs— Themed SVG manifests record@mermaid-js/[email protected]as the generator. -
All 33 Mermaid diagrams regenerated (adaptive and host SVGs, plus manifests). Sizes match the pre-Mermaid 12 renders except for small width changes in a few PlayTime diagrams;
playtime-overlaysdraws its circle nodes larger because of a Mermaid 12 circle-shape change that the classic look does not revert. -
PlantUML diagrams are unchanged.