Skip to content

site: migrate logos to brand kit, fix hero heading, green social card#20

Merged
lesnik512 merged 1 commit into
mainfrom
site-brand-refresh
Jun 28, 2026
Merged

site: migrate logos to brand kit, fix hero heading, green social card#20
lesnik512 merged 1 commit into
mainfrom
site-brand-refresh

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Finishes moving modern-python.org onto the canonical brand/build/ kit, and fixes the stray "Home" heading.

What changed

  • Hero — the homepage wordmark is now the two-color brand lockup (green MODERN + gold PYTHON), generated from the brand kit, swapped light/dark by color scheme. It lives inside the page <h1>, which suppresses Material's injected <h1>Home</h1> fallback.
  • Headertheme.logo is the compact chevron mark.svg; Material's "Modern Python" title and search stay in place. index.md gains title: Modern Python so the scroll-reveal header topic reads the brand name instead of "Home", and overrides/main.html overrides htmltitle so the homepage tab title stays Modern Python (no duplication).
  • Favicon — now the brand-kit favicon.svg.
  • Social cardog:image points at the green card (social-card-green.png).
  • Tagline — "Built with uv, ruff, and ty" moved to the bottom of the page.

Brand kit / tooling

  • brand/build/geometry.py gains wordmark() (transparent two-color lockup) and mark() (transparent chevron); render.py emits wordmark.svg, wordmark-dark.svg, mark.svg. Tests added in tests/.
  • New just sync-assets regenerates the kit and copies the site subset into docs/assets/.
  • Retired the superseded scripts/gen_logo_svg.py / gen_social_card.py and the old modern-python* assets + cream social-card.png.
  • architecture/site-branding.md documents the pipeline and wiring.

Verification

  • uv run pytest — 17 passed
  • uv run mkdocs build — clean; no <h1>Home</h1>, tab title Modern Python, header/hero/favicon/og:image all reference the new assets
  • just check-planning — OK
  • Previewed locally via mkdocs serve and confirmed in-browser

🤖 Generated with Claude Code

Finish moving modern-python.org onto the canonical brand/build kit:

- brand/build: add wordmark() (transparent two-color hero lockup, light +
  cream/gold-dark variants) and mark() (transparent chevron, no background);
  render.py emits wordmark.svg, wordmark-dark.svg, mark.svg. Tests cover both.
- just sync-assets: regenerate the kit and copy the site subset into docs/assets.
- Header: theme.logo -> assets/mark.svg (chevron mark), keeping Material's
  "Modern Python" site title and search beside it. Favicon -> assets/favicon.svg.
- Hero: replace the inline single-color wordmark with the two-color brand
  wordmark inside the page <h1>, scheme-swapped light/dark in extra.css. The
  <h1> suppresses Material's injected "Home" fallback heading.
- index.md gains a `title: Modern Python` so the header topic reads the brand
  name instead of the nav default "Home"; overrides/main.html overrides
  htmltitle so the homepage tab title stays "Modern Python" (not duplicated).
- Move the "Built with uv, ruff, and ty" tagline to the page bottom.
- Social card: og:image -> assets/social-card-green.png (green card).
- Retire the superseded scripts/gen_*.py generators and the old modern-python*
  assets and cream social-card.png.
- architecture/site-branding.md documents the asset pipeline and wiring.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant