From 4b156b4d080d18e941fc37fb116d4cac104591ef Mon Sep 17 00:00:00 2001 From: Elijah Lopez Date: Mon, 15 Nov 2021 16:53:01 -0500 Subject: [PATCH] Add dark theme --- docs/overrides.css | 15 +++++++++++++++ mkdocs.yml | 12 +++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/overrides.css b/docs/overrides.css index 6281bce..b8968ff 100644 --- a/docs/overrides.css +++ b/docs/overrides.css @@ -8,3 +8,18 @@ article .md-typeset__table td:nth-child(1) { article .md-typeset__table { width: 100%; } + +:root { + --md-primary-fg-color: #121212; +} + +[data-md-color-scheme="default"] { + --md-typeset-a-color: #4051b5; +} + + +[data-md-color-scheme="slate"] { + --md-hue: 232; + --md-default-bg-color: #121212; + --md-typeset-a-color: #FF6600; +} diff --git a/mkdocs.yml b/mkdocs.yml index 730bb5c..89a600c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -75,10 +75,16 @@ theme: text: Roboto code: Roboto Mono favicon: assets/favicon.png - palette: - primary: white - accent: indigo + - scheme: default + primary: white + toggle: + icon: material/weather-night + name: Switch to dark mode + - scheme: slate + toggle: + icon: material/weather-sunny + name: Switch to light mode icon: logo: logo logo: 'images/monero.svg'