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:
Philip Molares 2021-04-17 12:42:03 +02:00 committed by Tilman Vatteroth
parent ad9d1e3364
commit 60251d89ee
No known key found for this signature in database
GPG key ID: B97799103358209B
7 changed files with 65 additions and 11 deletions

View file

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