From 1d90b924ee0db877bcdff5aae435fffd2063ee38 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Mon, 22 Apr 2024 15:33:51 +0200 Subject: [PATCH] Adjust color scheme for fluffy.guide (#2144) Use the same scheme as for the nimbus.guide. Two differences however: - Set the dark scheme as default, considering the new nimbus.team website also has dark as default. - Remove the orange/amber for the light scheme, considering the light version of nimbus.team has no more orange. --- .../docs/stylesheets/extra.css | 6 ++++++ fluffy/docs/the_fluffy_book/mkdocs.yml | 20 +++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 fluffy/docs/the_fluffy_book/docs/stylesheets/extra.css diff --git a/fluffy/docs/the_fluffy_book/docs/stylesheets/extra.css b/fluffy/docs/the_fluffy_book/docs/stylesheets/extra.css new file mode 100644 index 000000000..f4b7a016a --- /dev/null +++ b/fluffy/docs/the_fluffy_book/docs/stylesheets/extra.css @@ -0,0 +1,6 @@ +[data-md-color-scheme="slate"] { + --md-hue: 180; + --md-default-bg-color: hsla(var(--md-hue), 0%, 0%, 1); + --md-footer-bg-color: hsla(var(--md-hue), 0%, 0%, 1); + --md-footer-bg-color--dark: hsla(var(--md-hue), 0%, 0%, 1); +} diff --git a/fluffy/docs/the_fluffy_book/mkdocs.yml b/fluffy/docs/the_fluffy_book/mkdocs.yml index a2efec277..0b406ea6d 100644 --- a/fluffy/docs/the_fluffy_book/mkdocs.yml +++ b/fluffy/docs/the_fluffy_book/mkdocs.yml @@ -14,9 +14,22 @@ theme: - navigation.top - content.tabs.link palette: - scheme: default - primary: orange - accent: amber + - scheme: slate + primary: black + accent: light blue + toggle: + icon: material/brightness-4 + name: Switch to light mode + - scheme: default + primary: white + accent: light blue + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + +extra_css: + - stylesheets/extra.css # Support urls previously used by mdbook use_directory_urls: false @@ -26,7 +39,6 @@ docs_dir: docs markdown_extensions: - admonition - - meta - pymdownx.details - pymdownx.highlight: anchor_linenums: true