Skip to content

Commit

Permalink
Fix mermaid diagrams in light/dark mode (#718)
Browse files Browse the repository at this point in the history
* add mermaid sheets

Signed-off-by: Pete Lumbis <[email protected]>

* add styling to mermaid diagrams for dark/light mode. Resolves #592

Signed-off-by: Pete Lumbis <[email protected]>

---------

Signed-off-by: Pete Lumbis <[email protected]>
  • Loading branch information
plumbis authored Feb 16, 2024
1 parent c9b8afb commit 83a3d08
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions themes/geekboot/assets/scss/_mermaid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.mermaid{
fill: var(--body-font-color) !important;

.messageText, .loopText>tspan, .marker, .marker.cross{
color: var(--body-font-color) !important;
fill: var(--body-font-color) !important;
}

.flowchart-link{
stroke: var(--body-font-color) !important;
}


}
3 changes: 2 additions & 1 deletion themes/geekboot/assets/scss/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@
@import "crds";
/* purgecss end ignore */
@import "skippy";
@import "fonts";
@import "fonts";
@import "mermaid";

0 comments on commit 83a3d08

Please sign in to comment.