mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-31 23:28:34 -04:00
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>
(cherry picked from commit 60251d89ee
)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
4640735d18
commit
67e1ff3d07
7 changed files with 73 additions and 54 deletions
|
@ -30,9 +30,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue