Skip to content

Commit

Permalink
🔧 Enable auto dark mode (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Aug 4, 2024
1 parent 0f8ba10 commit 9b632de
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@ theme:
name: material
custom_dir: docs/overrides
palette:
- scheme: default
- media: "(prefers-color-scheme)"
toggle:
icon: material/lightbulb-auto
name: Switch to light mode
- media: '(prefers-color-scheme: light)'
scheme: default
primary: deep purple
accent: amber
toggle:
icon: material/lightbulb
name: Switch to dark mode
- scheme: slate
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: deep purple
accent: amber
toggle:
icon: material/lightbulb-outline
name: Switch to light mode
name: Switch to system preference
features:
- search.suggest
- search.highlight
Expand Down

0 comments on commit 9b632de

Please sign in to comment.