Skip to content

Commit 00050f5

Browse files
committed
Added dark and light mode toggle.
Signed-off-by: Andrews Arokiam <[email protected]>
1 parent 43d43aa commit 00050f5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/stylesheets/extra.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
:root {
22
--md-primary-fg-color: #1a7dc9;
33
--home-color: #0071c7;
4-
--nav-item-color: #4d4d4d;
54
}
65

76
.md-clipboard {
@@ -255,3 +254,6 @@
255254
background: rgb(228, 255, 218);
256255
}
257256

257+
[data-md-color-scheme=slate] #release-update {
258+
color: #756A54;
259+
}

mkdocs.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ theme:
140140
- navigation.tracking
141141
- navigation.tabs.sticky
142142
- navigation.top
143+
palette:
144+
# Palette toggle for light mode
145+
- scheme: default
146+
toggle:
147+
icon: material/weather-night
148+
name: Switch to dark mode
149+
150+
# Palette toggle for dark mode
151+
- scheme: slate
152+
toggle:
153+
icon: material/weather-sunny
154+
name: Switch to light mode
155+
143156

144157
markdown_extensions:
145158
- markdown_include.include:
@@ -183,7 +196,6 @@ plugins:
183196
css_dir: css
184197
javascript_dir: js
185198
- swagger-ui-tag:
186-
background: White
187199
docExpansion: none
188200
filter: ""
189201
syntaxHighlightTheme: monokai

0 commit comments

Comments
 (0)