Skip to content

Commit

Permalink
chore: 🤖 Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yashksaini-coder committed Oct 24, 2024
1 parent b1757b3 commit 26a8596
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,33 @@ theme:
- navigation.instant.progress # Add this line to enable instant navigation progress
icon:
repo: fontawesome/brands/github

palette:

# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference

nav:
- Home: index.md
- Usage: Usage.md
- Contributing: Contributing.md
- How It Works: How-It-Works.md
- Team: Team.md
- License: License.md

- License: License.md

0 comments on commit 26a8596

Please sign in to comment.