Skip to content

Commit

Permalink
Readded support for dark/light theme
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Kele <[email protected]>
  • Loading branch information
raulkele authored and rchamarthy committed Nov 24, 2022
1 parent a75cccb commit 40cf89d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
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

0 comments on commit 40cf89d

Please sign in to comment.