mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-02 16:09:59 -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>
This commit is contained in:
parent
ad9d1e3364
commit
60251d89ee
7 changed files with 65 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue