Skip to content

Commit

Permalink
Documentation: Add dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Dec 4, 2023
1 parent c6d4453 commit 075fd69
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ repo_url: https://github.com/ideoforms/signalflow
theme:
name: material
palette:
- primary: red
- accent: amber
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: red
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: red
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
# enable button to copy code block
- content.code.copy
Expand Down

0 comments on commit 075fd69

Please sign in to comment.