Skip to content

Commit

Permalink
🔧 Enable auto dark mode from system
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Aug 4, 2024
1 parent 7636aac commit b1d8f88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ theme:
name: material
custom_dir: docs/overrides
palette:
- scheme: default
- media: '(prefers-color-scheme: light)'
scheme: default
primary: black
accent: teal
toggle:
icon: material/lightbulb
name: Switch to dark mode
- scheme: slate
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: black
accent: teal
toggle:
Expand Down

0 comments on commit b1d8f88

Please sign in to comment.