Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/assets/modern-python-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/modern-python-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/css/brand.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Brand palette — forest green sampled from the org logo (#356852) */
:root > * {
--md-primary-fg-color: #356852;
--md-primary-fg-color--light: #4a8a6e;
--md-primary-fg-color--dark: #234738;
--md-accent-fg-color: #c98a00;
}

/* Dark scheme keeps the same brand hue; lighter green for body links so they
stay AA-readable on the dark background. */
[data-md-color-scheme="slate"] {
--md-primary-fg-color: #356852;
--md-primary-fg-color--light: #4a8a6e;
--md-primary-fg-color--dark: #234738;
--md-accent-fg-color: #e0a300;
--md-typeset-a-color: #7fb79f;
}
13 changes: 9 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ nav:

theme:
name: material
logo: assets/modern-python-white.svg
favicon: assets/modern-python-mark.svg
features:
- content.code.copy
- content.action.edit
Expand All @@ -30,19 +32,22 @@ theme:
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: black
accent: pink
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: pink
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to system preference

extra_css:
- css/brand.css

markdown_extensions:
- toc:
permalink: true
Expand Down