docs: add dark mode (#1412)

pull/1427/head
Carlos Rueda 2 years ago committed by GitHub
parent faa94c4fd1
commit a19887546b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,10 @@
--md-accent-fg-color--transparent: #00334310; --md-accent-fg-color--transparent: #00334310;
} }
[data-md-color-scheme="slate"] {
--md-typeset-a-color: #7f9ece;
}
.md-header-nav__button.md-logo { .md-header-nav__button.md-logo {
padding: 0; padding: 0;
} }

@ -5,7 +5,16 @@ edit_uri: edit/main/docs/
theme: theme:
name: 'material' name: 'material'
palette: palette:
- media: "(prefers-color-scheme: light)"
scheme: containrrr scheme: containrrr
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
logo: images/logo-450px.png logo: images/logo-450px.png
favicon: images/favicon.ico favicon: images/favicon.ico
extra_css: extra_css:

Loading…
Cancel
Save