Skip to content

Commit 76b1de4

Browse files
lesnik512claude
andauthored
docs: adopt org logo, favicon, and brand palette (#72)
Match modern-python.org: white wordmark logo top-left, mark favicon, forest-green Material palette. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent abb7ff7 commit 76b1de4

4 files changed

Lines changed: 28 additions & 4 deletions

File tree

docs/assets/modern-python-mark.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

docs/css/brand.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* Brand palette — forest green sampled from the org logo (#356852) */
2+
:root > * {
3+
--md-primary-fg-color: #356852;
4+
--md-primary-fg-color--light: #4a8a6e;
5+
--md-primary-fg-color--dark: #234738;
6+
--md-accent-fg-color: #c98a00;
7+
}
8+
9+
/* Dark scheme keeps the same brand hue; lighter green for body links so they
10+
stay AA-readable on the dark background. */
11+
[data-md-color-scheme="slate"] {
12+
--md-primary-fg-color: #356852;
13+
--md-primary-fg-color--light: #4a8a6e;
14+
--md-primary-fg-color--dark: #234738;
15+
--md-accent-fg-color: #e0a300;
16+
--md-typeset-a-color: #7fb79f;
17+
}

mkdocs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ nav:
2020

2121
theme:
2222
name: material
23+
logo: assets/modern-python-white.svg
24+
favicon: assets/modern-python-mark.svg
2325
features:
2426
- content.code.copy
2527
- content.action.edit
@@ -30,19 +32,22 @@ theme:
3032
palette:
3133
- media: "(prefers-color-scheme: light)"
3234
scheme: default
33-
primary: black
34-
accent: pink
35+
primary: custom
36+
accent: custom
3537
toggle:
3638
icon: material/brightness-7
3739
name: Switch to dark mode
3840
- media: "(prefers-color-scheme: dark)"
3941
scheme: slate
40-
primary: black
41-
accent: pink
42+
primary: custom
43+
accent: custom
4244
toggle:
4345
icon: material/brightness-4
4446
name: Switch to system preference
4547

48+
extra_css:
49+
- css/brand.css
50+
4651
markdown_extensions:
4752
- toc:
4853
permalink: true

0 commit comments

Comments
 (0)