Add dark mode toggle for documentation (#2403)

This commit is contained in:
Meder Kamalov 2022-10-11 12:54:24 +02:00 committed by GitHub
parent 0ebe9259ac
commit 36f16234bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,18 @@ site_url: https://www.python-httpx.org/
theme:
name: 'material'
palette:
- scheme: 'default'
media: '(prefers-color-scheme: light)'
toggle:
icon: 'material/lightbulb'
name: "Switch to dark mode"
- scheme: 'slate'
media: '(prefers-color-scheme: dark)'
primary: 'blue'
toggle:
icon: 'material/lightbulb-outline'
name: 'Switch to light mode'
features:
- navigation.sections