Skip to content

Commit

Permalink
enable dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSLogan committed Sep 24, 2024
1 parent 042dc73 commit add3e10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:root {
:root,
[data-md-color-scheme="slate"],
[data-md-color-scheme="default"] {
--md-primary-fg-color: #00315F;
--md-primary-fg-color--light: #0D4F8C;
--md-primary-fg-color--dark: #00315F;
Expand Down
12 changes: 12 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ theme:
favicon: images/odi-circle_logomark-blue.png
features:
- content.code.copy
palette:
# Palette toggle for light mode
- scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode

# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
extra_css:
- stylesheets/extra.css

Expand Down

0 comments on commit add3e10

Please sign in to comment.