Adding light / dark mode themes switch.

This commit is contained in:
Nicolas Noble 2021-04-09 11:16:25 -07:00 committed by GitHub
parent 525259c16b
commit a925b9c9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -4,6 +4,25 @@ repo_url: https://github.com/psx-spx/psx-spx.github.io/
theme:
name: material
palette:
# Light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
# Dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: blue
accent: blue
toggle:
icon: material/toggle-switch
name: Switch to light mode
plugins:
- search