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:
Philip Molares 2021-04-17 12:42:03 +02:00 committed by David Mehren
parent 4640735d18
commit 67e1ff3d07
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
7 changed files with 73 additions and 54 deletions

View file

@ -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