Add dark and light theme mode to docs, detection, and button #360

Merged
floatingghost merged 1 commit from :docs-dark-mode into develop 2022-12-10 14:41:24 +00:00
Showing only changes of commit fbfffccc1d - Show all commits

View file

@ -12,8 +12,21 @@ theme:
- navigation.instant
- navigation.sections
palette:
primary: 'deep purple'
accent: 'blue grey'
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
primary: 'deep purple'
accent: 'blue grey'
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
primary: 'deep purple'
accent: 'blue grey'
extra_css:
- css/extra.css