Skip to content

Commit

Permalink
Docs: add dark mode toggle and default to system preference (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 6, 2022
1 parent e4681fa commit fb06292
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ site_url: https://python-humanize.readthedocs.io
repo_url: https://github.com/jmoiron/humanize
theme:
name: material
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/toggle-switch
name: Switch to light mode

nav:
- Home: index.md
Expand Down

0 comments on commit fb06292

Please sign in to comment.