Skip to content

Commit

Permalink
adding dark mode to documenttion #23
Browse files Browse the repository at this point in the history
  • Loading branch information
NandaniThakur committed May 29, 2024
1 parent c13fda1 commit c5c72a0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ repo_name: cli-surf

theme:
name: material
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:
- index.md
Expand All @@ -20,3 +41,7 @@ nav:
- Styling: styling.md
- Tests: tests.md
- Structure: structure.md




0 comments on commit c5c72a0

Please sign in to comment.