Skip to content

Commit

Permalink
Merge pull request #383 from cagov/info_arch
Browse files Browse the repository at this point in the history
Add a dark mode to docs
  • Loading branch information
britt-allen authored Sep 24, 2024
2 parents 042dc73 + add3e10 commit a4b293c
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 a4b293c

Please sign in to comment.