Merge pull request #39 from elibroftw/dark-theme

Add dark theme
This commit is contained in:
Piotr Włodarek 2021-11-16 16:52:02 +00:00 committed by GitHub
commit d25093ffcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View file

@ -8,3 +8,18 @@ article .md-typeset__table td:nth-child(1) {
article .md-typeset__table {
width: 100%;
}
:root {
--md-primary-fg-color: #121212;
}
[data-md-color-scheme="default"] {
--md-typeset-a-color: #4051b5;
}
[data-md-color-scheme="slate"] {
--md-hue: 232;
--md-default-bg-color: #121212;
--md-typeset-a-color: #FF6600;
}

View file

@ -75,10 +75,16 @@ theme:
text: Roboto
code: Roboto Mono
favicon: assets/favicon.png
palette:
primary: white
accent: indigo
- scheme: default
primary: white
toggle:
icon: material/weather-night
name: Switch to dark mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
icon:
logo: logo
logo: 'images/monero.svg'