You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quartz's Mermaid integration reads the computed CSS variables and passes --tertiary to Mermaid as primaryBorderColor and tertiaryColor.
Using explicit hexadecimal colors in Mermaid's themeVariables makes the diagram render correctly, which suggests that Mermaid itself is functioning but does not accept the CSS calc() expression generated by the theme.
Expected behavior
The default theme should render Mermaid diagrams without requiring users to override Mermaid's theme variables manually.
Actual behavior
Mermaid fails to initialize because one of the colors supplied by the default theme uses an hsl() expression containing calc().
The issue is also reproducible on the theme's own documentation site.
Mermaid diagrams fail with
Unsupported color formatin the default themeDescription
Mermaid diagrams fail to render when using the
@quartz-themes/defaulttheme.The browser console reports:
This also appears to be reproducible on the default theme's own Mermaid documentation:
https://quartz-themes.github.io/default/features/mermaid-diagrams
Environment
@quartz-themes/default1.0.1Steps to reproduce
@quartz-themes/defaulttheme.flowchart LR A[Obsidian] --> B[GitHub] B --> C[VPS] C --> D[Quartz]The Mermaid diagram does not render and the following error is reported:
Additional investigation
The problematic CSS variable appears to be
--tertiary.Its computed value is:
The corresponding theme definition uses:
Quartz's Mermaid integration reads the computed CSS variables and passes
--tertiaryto Mermaid asprimaryBorderColorandtertiaryColor.Using explicit hexadecimal colors in Mermaid's
themeVariablesmakes the diagram render correctly, which suggests that Mermaid itself is functioning but does not accept the CSScalc()expression generated by the theme.Expected behavior
The default theme should render Mermaid diagrams without requiring users to override Mermaid's theme variables manually.
Actual behavior
Mermaid fails to initialize because one of the colors supplied by the default theme uses an
hsl()expression containingcalc().The issue is also reproducible on the theme's own documentation site.