Variable CANONICAL_MERMAID_INITConst
CANONICAL_MERMAID_INIT: "%%{init: {\n \"theme\": \"dark\",\n \"themeVariables\": {\n \"primaryColor\": \"#00d9ff\",\n \"primaryTextColor\": \"#e0e0e0\",\n \"primaryBorderColor\": \"#00d9ff\",\n \"lineColor\": \"#ff006e\",\n \"secondaryColor\": \"#1a1e3d\",\n \"tertiaryColor\": \"#0a0e27\",\n \"background\": \"#0a0e27\"\n },\n \"flowchart\": { \"htmlLabels\": false, \"useMaxWidth\": true },\n \"sequence\": { \"useMaxWidth\": true }\n}}%%\n" = ...
Canonical Mermaid
%%{init โฆ}%%prologue. Single trailing newline so it can be prepended to any diagram body without producing a stray blank line that some Mermaid parsers reject.