Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dark and light mode toggle. #313

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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