Skip to content

Add clanker banner, dark mode toggle, and Geist font#200

Merged
koaning merged 5 commits intomainfrom
koaning/clanker-banner
May 1, 2026
Merged

Add clanker banner, dark mode toggle, and Geist font#200
koaning merged 5 commits intomainfrom
koaning/clanker-banner

Conversation

@koaning
Copy link
Copy Markdown
Owner

@koaning koaning commented May 1, 2026

Summary

  • Reference pages now show a small "Feeding a clanker?" pill in the top-right linking to the page's .md endpoint, so users notice the LLM-friendly markdown version exists.
  • Re-enables the sun/moon palette toggle (default/slate) in the header — extra.css already had the dark-mode overrides.
  • Switches the docs font stack from PT Sans + Fira Mono to Geist + Geist Mono (picked via the ui-picker A/B against Inter and DM Sans pairings).

Test plan

  • make docs builds clean.
  • make docs-serve and visit a reference page (e.g. /reference/slider2d/): the clanker pill floats top-right of the H1 and the linked .md returns 200.
  • Toggle the sun/moon icon in the header and confirm the slate palette swap works.
  • Page text and code blocks render in Geist / Geist Mono (Google Fonts loaded via [project.theme.font]).

Vincent D. Warmerdam added 5 commits May 1, 2026 18:33
Each /reference/<widget>/ page now shows a "Feeding an LLM?" banner near the
top that links to the matching .md endpoint, so users notice the markdown
version exists without having to hunt through the gallery.
- Drop the page emoji and the green arrow color; the pill is now monochrome
  with a transparent background and floats right of the H1 so the page title
  isn't pushed down.
- Restore the sun/moon palette toggle so users can switch between the
  default and slate schemes (extra.css already had the dark overrides).
Picked via the ui-picker A/B between PT Sans, Inter, DM Sans, and Geist.
Geist's Swiss-precision sans pairs naturally with its monospace sibling so
headings, body, and code all feel like the same family.
@koaning koaning merged commit 1cf7b70 into main May 1, 2026
2 checks passed
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