You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ship JetBrains Mono, add AuthLayout maxWidth and PageHeading breadcrumbs
The design system named JetBrains Mono as --font-mono but never loaded it.
The UI font was set on the Storybook canvas in .storybook/storybook.css, a
file excluded from files: ["dist"], so it reached the canvas and no consumer.
Every consuming app silently rendered in ui-monospace instead — SF Mono,
Consolas or DejaVu Sans Mono depending on the developer's OS.
Load it from the published src/tokens.css instead, self-hosted via
@fontsource/jetbrains-mono as a real dependency so consumers get the files
transitively. Latin subset, weights 400/500/600/700. Self-hosted rather than
CDN-loaded: consumers ship their own privacy policy and DPA, and a webfont CDN
sends every visitor's IP to a third party on first paint.
Alongside it, two additive APIs that consuming apps were forking components to
get: AuthLayout gains maxWidth (the card was hardcoded to max-w-md, so wider
onboarding and consent screens had to copy its markup), and PageHeading gains
breadcrumbs/breadcrumbAs (the trail and title are one visual unit, re-paired by
hand on every nested page).
PageHeading's title row is now min-h-11 so pages with and without an action
cluster align their titles; AuthLayout pins its footer to the bottom of the
viewport, which is a no-op unless a #footer slot is passed. Type-scale comments
corrected: PageHeading renders text-xl, not the text-2xl the token claimed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments