From 2ce32238b5c09da32b74487ad49d2b7ca82a1422 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 | 4 ++++ 2 files changed, 5 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..2cfc44d789ac --- /dev/null +++ b/svgbob.css @@ -0,0 +1,4 @@ +/* Ensure text is legible in all themes. */ +svg text { + fill: var(--fg); +}