Skip to content

Commit

Permalink
Add auto, dark and light modes to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisham-Pak committed Jan 19, 2024
1 parent 4ef3429 commit 17f34ee
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,23 @@ extra_css:
theme:
name: material
palette:
primary: green
- media: "(prefers-color-scheme)"
primary: green
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: green
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: green
toggle:
icon: material/weather-sunny
name: Switch to light mode
logo: img/docs-logo.png
favicon: img/favicon.png
language: en
Expand Down Expand Up @@ -91,5 +107,3 @@ plugins:
setup_commands:
- from django.conf import settings
- settings.configure()
watch:
- ../ninja

0 comments on commit 17f34ee

Please sign in to comment.