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;
}
[data-md-color-scheme="slate"] {
--md-typeset-a-color: #7f9ece;
}
.md-header-nav__button.md-logo {
padding: 0;
}
@ -13,4 +17,4 @@
.md-header-nav__button.md-logo img {
width: 1.6rem;
height: 1.6rem;
}
}

@ -5,7 +5,16 @@ edit_uri: edit/main/docs/
theme:
name: 'material'
palette:
scheme: containrrr
- media: "(prefers-color-scheme: light)"
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
favicon: images/favicon.ico
extra_css:
@ -24,7 +33,7 @@ markdown_extensions:
repo: watchtower
- pymdownx.saneheaders
- pymdownx.tabbed:
alternate_style: true
alternate_style: true
nav:
- 'Home': 'index.md'
- 'Introduction': 'introduction.md'

Loading…
Cancel
Save