Skip to content

Commit

Permalink
Merge pull request #30 from NandaniThakur/darkmode-documentation
Browse files Browse the repository at this point in the history
(Fixes #23)adding dark mode to documenttion
  • Loading branch information
ryansurf authored May 29, 2024
2 parents c13fda1 + c5c72a0 commit 64c5f4e
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 64c5f4e

Please sign in to comment.