Skip to content

Commit

Permalink
Fix svgbob diagrams in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation authored and mgeisler committed Dec 27, 2022
1 parent d052db8 commit 2ce3223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class = "bob"
[output.html]
curly-quotes = true
additional-js = ["ga4.js"]
additional-css = ["svgbob.css"]
git-repository-url = "https://github.com/google/comprehensive-rust"
edit-url-template = "https://github.com/google/comprehensive-rust/edit/main/{path}"

Expand Down
4 changes: 4 additions & 0 deletions svgbob.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Ensure text is legible in all themes. */
svg text {
fill: var(--fg);
}

0 comments on commit 2ce3223

Please sign in to comment.