Skip to content

Commit

Permalink
Added dark and light mode toggle.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrews Arokiam <[email protected]>
  • Loading branch information
andyi2it committed Jun 24, 2024
1 parent 43d43aa commit 00050f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:root {
--md-primary-fg-color: #1a7dc9;
--home-color: #0071c7;
--nav-item-color: #4d4d4d;
}

.md-clipboard {
Expand Down Expand Up @@ -255,3 +254,6 @@
background: rgb(228, 255, 218);
}

[data-md-color-scheme=slate] #release-update {
color: #756A54;
}
14 changes: 13 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ theme:
- navigation.tracking
- navigation.tabs.sticky
- navigation.top
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


markdown_extensions:
- markdown_include.include:
Expand Down Expand Up @@ -183,7 +196,6 @@ plugins:
css_dir: css
javascript_dir: js
- swagger-ui-tag:
background: White
docExpansion: none
filter: ""
syntaxHighlightTheme: monokai
Expand Down

0 comments on commit 00050f5

Please sign in to comment.