diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 456d12cd1..b57211c7f 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -7,7 +7,10 @@ mjx-math {
}
:root {
- --md-admonition-icon--important: url('data:image/svg+xml;charset=utf-8,')
+ --md-primary-fg-color: #00599c;
+ --md-primary-fg-color--light: #659ad2;
+ --md-primary-fg-color--dark: #004482;
+ --md-admonition-icon--important: url('data:image/svg+xml;charset=utf-8,');
}
.md-typeset .admonition.important,
diff --git a/mkdocs.yml b/mkdocs.yml
index c7be7a5d8..d244acbd2 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -34,20 +34,27 @@ theme:
- toc.follow
- toc.integrate
palette:
+ # Palette toggle for automatic mode
+ - media: "(prefers-color-scheme)"
+ toggle:
+ icon: material/link
+ name: Switch to light mode
+
+ # Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
- primary: indigo
- accent: indigo
+ primary: custom
toggle:
- icon: material/weather-night
+ icon: material/weather-sunny
name: Switch to dark mode
+
+ # Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
- primary: indigo
- accent: indigo
+ primary: black
toggle:
- icon: material/weather-sunny
- name: Switch to light mode
+ icon: material/weather-night
+ name: Switch to system preference
font:
text: Roboto
code: Roboto Mono
@@ -65,6 +72,8 @@ plugins:
- search
- social:
enabled: !ENV [CI, false]
+ cards_layout_options:
+ background_color: "#00599c"
- tags:
tags_file: users_guide/examples/tags_index.md