DOCS, switch to dark or light mode (#13953)

This commit is contained in:
Santiago Z 2022-04-26 04:35:02 -03:00 committed by GitHub
parent cdf457fbc5
commit 72aa258c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -8,7 +8,20 @@ theme:
text: 'Roboto'
code: 'Roboto Mono'
palette:
primary: black
- media: "(prefers-color-scheme: light)"
scheme: default
primary: black
accent: indigo
toggle:
icon: material/lightbulb-outline
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/lightbulb
name: Switch to light mode
features:
- navigation.instant