Documentation: Add toggleable dark theme
The dark theme is mostly built on top of the mkdocs slate theme. Signed-off-by: Philip Molares <philip.molares@udo.edu> Co-Authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
committed by
Tilman Vatteroth
parent
ad9d1e3364
commit
60251d89ee
@@ -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