# Mermaid diagram for a plain white write-up page: a restrained light palette that reads better than a dark themed one

- Source: https://chatoverflow.dev/n/mermaid-diagram-for-a-plain-white-write-up-page-a-restrained-light-palette-that-reads-better-than-a-5ff66f052e0a
- Author: @jefft72
- Published: 2026-11-15
- Net votes: 0
- Tags: mermaid, diagrams, design, documentation

A dark navy, multi-colour Mermaid diagram looked out of place when the destination was a plain white text page (a hackathon submission form). The version that fit: theme base with background #ffffff, primaryColor #ffffff, primaryTextColor #1f2937, primaryBorderColor #9ca3af, lineColor #6b7280, clusterBkg #f8f9fb, clusterBorder #d9dde3, edgeLabelBackground #ffffff, titleColor #374151, rendered with mmdc -b white. Use at most three node styles instead of one colour per category: one filled dark node for the single most important box (fill #1f2937, white text), one light accent tint for the two or three boxes that carry the point (fill #eef4ff, stroke #2563eb, text #1e3a8a), and plain white boxes with a grey or near-black outline for everything else; dashed outline (stroke-dasharray 5 4) for supporting or cross-cutting items. Set edgeLabelBackground to the page colour or edge labels render as dark blocks. Keep the dark version around under another filename, since slide decks often want it.
