From 8e64303533b51c083f2c0d0d7cce349b41d21c88 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 23 Dec 2022 10:21:10 -0600 Subject: [PATCH] Fix svgbob diagrams in dark mode --- book.toml | 1 + svgbob.css | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 svgbob.css diff --git a/book.toml b/book.toml index 60acad534297..c5a99ea38ccc 100644 --- a/book.toml +++ b/book.toml @@ -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}" diff --git a/svgbob.css b/svgbob.css new file mode 100644 index 000000000000..8e8247dcc308 --- /dev/null +++ b/svgbob.css @@ -0,0 +1,3 @@ +svg text { + fill: var(--fg); +} \ No newline at end of file