Merge pull request #1145 from hedgedoc/docs/darkTheme
Documentation: Add toggleable dark theme
This commit is contained in:
@@ -66,9 +66,21 @@ theme:
|
||||
favicon: images/favicon.png
|
||||
logo: images/logo.svg
|
||||
palette:
|
||||
scheme: light
|
||||
primary: 'hedgedoc'
|
||||
accent: 'hedgedoc'
|
||||
- media: "(prefers-color-scheme: light)"
|
||||
scheme: light
|
||||
primary: 'hedgedoc'
|
||||
accent: 'hedgedoc'
|
||||
toggle:
|
||||
icon: material/lightbulb-outline
|
||||
name: Switch to dark mode
|
||||
# Dark mode
|
||||
- media: "(prefers-color-scheme: dark)"
|
||||
scheme: slate
|
||||
primary: 'hedgedoc'
|
||||
accent: 'hedgedoc'
|
||||
toggle:
|
||||
icon: material/lightbulb
|
||||
name: Switch to light mode
|
||||
features:
|
||||
- navigation.tabs
|
||||
- navigation.sections
|
||||
|
||||
Reference in New Issue
Block a user