Skip to content

Commit 1c5387c

Browse files
authored
Update mermaid background (#237)
2 parents 10291e3 + f5a18b8 commit 1c5387c

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

assets/docs/scss/custom/components/_backgrounds.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
--bg-default: hsl(var(--primary-800-hsl),0.1);
77
--bg-default-border: hsl(var(--primary-800-hsl),0.1);
88
--bg-default-color: var(--text-default);
9+
--bg-mermaid: var(--gray-100);
910
}
1011

1112
[data-dark-mode] {
1213
--bg-default: var(--gray-800);
1314
--bg-default-border: hsl(var(--primary-200-hsl),0.1);
1415
--bg-default-color: var(--text-default);
16+
--bg-mermaid: var(--gray-800);
1517
}
1618

1719
.bg-default {

assets/docs/scss/custom/plugins/mermaid/_mermaid.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,12 @@
3737
text {
3838
fill: var(--text-default) !important;
3939
}
40+
#sequencenumber circle {
41+
fill: var(--bg-mermaid) !important;
42+
stroke: var(--text-default) !important;
43+
}
44+
.sequenceNumber {
45+
fill: var(--text-default) !important;
46+
}
4047
}
4148
}

exampleSite/content/docs/example-content/mermaid.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ C -->|Two| E[Result 2]
2424

2525
```mermaid
2626
sequenceDiagram
27+
autonumber
2728
Alice->>John: Hello John, how are you?
2829
loop Healthcheck
2930
John->>John: Fight against hypochondria

0 commit comments

Comments
 (0)