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

Readded support for dark/light theme #25

Merged
merged 1 commit into from
Nov 24, 2022
Merged
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
5 changes: 3 additions & 2 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.default-bg {
background: none!important;
background-color:hsla(232,15%,21%,1)!important;
background-color: var(--md-default-bg-color)!important;
}


.content-container-centered {
padding: 5.2rem 0;
margin: 0 0.8rem;
Expand All @@ -29,7 +30,7 @@
}

.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.item_content{
color: hsla(232,75%,95%,1)!important;
color: var(--md-typeset-color)!important;
}


Expand Down
17 changes: 14 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,20 @@ theme:
name: material
custom_dir: material
palette:
scheme: slate
primary: black
accent: teal
- scheme: slate
toggle:
name: Light Mode
icon: material/toggle-switch-off-outline
primary: black
accent: lime
media: "(prefers-color-scheme: dark)"
- scheme: default
toggle:
name: Dark Mode
icon: material/toggle-switch
primary: black
accent: teal
media: "(prefers-color-scheme: light)"
favicon: assets/images/favicon.png
logo: assets/images/logo.png
features:
Expand Down