Something as simple as
%%{init: {'themeVariables': { 'primaryColor': '#ff0000'}}}%%
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
B --> G[/Another/]
C ==>|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
subgraph section
C
D
E
F
G
end
Is not even working for me. It’s daft. It’s like it completely ignores the init
Got an idea from @Salamander23 and did this which is a workaround for now
:root {
--mermaid-font: 'JetBrains Mono', 'Fira Code Medium', 'Source Code Pro', monospace;
--mermaid-font-size: 0.8rem;
}
div.mermaid {
text-align: center;
}
.mermaid-large svg[id^="m"][width][height][viewBox] {
min-width: 900px;
max-width: 1800px;
width: 95%;
height: auto;
}
.mermaid-medium svg[id^="m"][width][height][viewBox] {
min-width: 500px;
max-width: 1000px;
width: 95%;
height: auto;
}
.mermaid-small svg[id^="m"][width][height][viewBox] {
min-width: 300px;
max-width: 750px;
width: 95%;
height: auto;
}
I’m open to any more ideas 