Skip to content

Commit 416aa5b

Browse files
committed
Change documentation color
1 parent 1dd3b43 commit 416aa5b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[data-md-color-scheme="CILlight"] {
2+
--md-primary-fg-color: #4DC8D6;
3+
--md-primary-fg-color--light: #BAE8E2;
4+
--md-primary-fg-color--dark: #3393B0;
5+
}
6+
7+
[data-md-color-scheme="slate"] {
8+
--md-primary-fg-color: #3393B0;
9+
--md-primary-fg-color--light: #BAE8E2;
10+
--md-primary-fg-color--dark: #3393B0;
11+
}

mkdocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ repo_url: "https://github.com/climateimpactlab/dscim"
66
theme:
77
name: "material"
88

9+
palette:
10+
11+
# Palette toggle for light mode
12+
- scheme: CILlight
13+
toggle:
14+
icon: material/brightness-7
15+
name: Switch to dark mode
16+
17+
# Palette toggle for dark mode
18+
- scheme: slate
19+
toggle:
20+
icon: material/brightness-4
21+
name: Switch to light mode
22+
23+
extra_css:
24+
- stylesheets/extra.css
25+
926
plugins:
1027
- mkdocstrings:
1128
default_handler: python
@@ -48,3 +65,4 @@ nav:
4865
- rff: utils/rff.md
4966
- utils: utils/utils.md
5067
- Changelog: changelog.md
68+

0 commit comments

Comments
 (0)