Skip to content

Commit c73c11d

Browse files
committed
default scss themes for reveal diagrams
1 parent 1d92caa commit c73c11d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
/*-- scss:defaults --*/
2+
3+
// Quarto diagrams
4+
5+
$mermaid-body-color: #000 !default;
6+
$mermaid-bg-color: #fff !default;
7+
$primary: $mermaid-body-color !default;
8+
$secondary: #2a76dd !default; // is this from --r-link-color in our default theme, but I don't know how to use css variables in scss :shrug:
9+
10+
/* SCSS variables for mermaid diagrams
11+
12+
These are documented in quarto-cli/quarto-web:docs/authoring/_mermaid-theming.qmd
13+
14+
Make sure to update the docs if you change these. */
15+
$mermaid-bg-color: $mermaid-bg-color !default;
16+
$mermaid-edge-color: darken($secondary, 10%) !default;
17+
$mermaid-node-fg-color: $mermaid-body-color !default;
18+
$mermaid-fg-color: $mermaid-body-color !default;
19+
$mermaid-fg-color--lighter: lighten($mermaid-body-color, 10%) !default;
20+
$mermaid-fg-color--lightest: lighten($mermaid-body-color, 20%) !default;
21+
$mermaid-font-family: sans-serif !default;
22+
$mermaid-label-bg-color: $mermaid-bg-color !default;
23+
$mermaid-label-fg-color: $primary !default;
24+
$mermaid-node-bg-color: rgba($primary, 0.1) !default;
25+
$mermaid-node-fg-color: $primary !default;
26+

0 commit comments

Comments
 (0)