Skip to content

Commit

Permalink
🔧 Enable auto dark mode (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Aug 4, 2024
1 parent 631e195 commit 773b84c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,35 @@ site_url: https://asyncer.tiangolo.com/
theme:
name: material
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: orange
accent: indigo
toggle:
icon: material/lightbulb
name: Switch to dark mode
- scheme: slate
- media: '(prefers-color-scheme: dark)'
scheme: slate
primary: orange
accent: indigo
toggle:
icon: material/lightbulb-outline
name: Switch to light mode
name: Switch to system preference
features:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.indexes
- content.tooltips
- navigation.path
- content.code.annotate
- content.code.copy
- content.code.select
# - navigation.tabs
icon:
repo: fontawesome/brands/github-alt
logo: img/icon-white.svg
Expand Down

0 comments on commit 773b84c

Please sign in to comment.