Skip to content

Commit 43f8f04

Browse files
committed
Invert colors in diagrams if a dark theme is selected.
1 parent be678ae commit 43f8f04

File tree

7 files changed

+27
-6
lines changed

7 files changed

+27
-6
lines changed

book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title = "The Amaranth RFC Book"
44
[output.html]
55
no-section-label = true
66
git-repository-url = "https://github.com/amaranth-lang/rfcs"
7+
additional-css = ["theme/img-color-scheme.css"]
78

89
[output.html.search]
910
heading-split-level = 0

text/0049-soc-gpio-peripheral/overview.svg

Lines changed: 12 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

theme/img-color-scheme.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.light, .rust {
2+
img {
3+
color-scheme: light;
4+
}
5+
}
6+
.ayu, .coal, .navy {
7+
img {
8+
color-scheme: dark;
9+
}
10+
}

0 commit comments

Comments
 (0)