Repository navigation
feat(styles)!: take typography from groudon - #314
Conversation
…sign pixels - charizard.css bundles @hybr1d-tech/groudon (tokens + zap-* classes) in place of the library's own _typography.css copy. - Component CSS rem values were written for the console's 13px root, so in 16px apps (zenex, ops, vendor portal) drawers, inputs, switches, selects and date pickers rendered ~23% too large. They are now calc(N * var(--zap-px)) in design pixels and render the same in every app; the console is unchanged (within 1px of rounding). - The library renders groudon's Instrument Sans again (--font-sans: var(--zap-font-sans)); Geist moves to the docs site only, so apps stop downloading the Geist font files. - .zap-button-small keeps the !important it had in the old copy (table filter chips). BREAKING CHANGE: --font-mono is no longer defined by the library, and 16px-root apps see charizard components shrink to their designed sizes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the local link: used while groudon 1.0.0 was unreleased. The Geist fontsource packages move to devDependencies: only the docs site loads them, the library ships Instrument Sans via groudon tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryThe PR replaces the local typography stylesheet with
No new actionable issues were found. Build and browser checks were not run; dependencies are not installed locally. Reviews (3) · Last reviewed commit: "fix(styles)!: keep every app rendering e..." · Reviewed by Greptile |
Narrow this change to moving the type scale onto groudon. Before/after production builds of every consuming app showed the design-pixel rewrite of component sizes shrinking components ~19% in the 16px-root apps (zenex, ops, vendor portal), so it is reverted here and will ship separately with design QA: - component CSS (drawer, input, switch, select, date pickers, progress, upload, empty state, layout tabs, popover, pagination, toast) back to the rem values on main; Drawer.tsx back to its rem calc - Geist stays the library font exactly as on main (--font-sans / --font-mono and the fontsource imports + dependencies); toasts and progress still read it - the docs site no longer needs its own Geist override What remains: charizard.css imports @hybr1d-tech/groudon instead of the library's _typography.css copy, and .zap-button-small keeps its !important. BREAKING CHANGE: the old --letter-spacing, --line-height-142/145/150/166/171 and --link-color custom properties are no longer defined by the library; use groudon's --zap-* tokens (no consumer references the old names). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@greptileai review |
Comments Outside DiffThese findings could not be posted inline.
|
|
Re the review of 1da26d0 ("Apps still use Geist" and "restore the design-pixel dimensions"): both are intentional. This PR's requirement is now no visual change in any app. It only moves the type scale onto groudon.
The PR description has the verification: 80 of 80 component pages identical at 13px and 16px, plus 16 console, 8 zenex and 19 ops pages logged in on staging, with no font or layout differences. |
|
@greptileai review |
PSD-3901: the library's type scale now comes from
@hybr1d-tech/groudon@1.0.0(published from Usehybrid/groudon with provenance). No visual change in any app.What changes
charizard.cssimports@hybr1d-tech/groudon(type-scale tokens and the same 24zap-*classes) in place of the library's own_typography.csscopy, which is deleted..zap-button-smallkeeps the!importantthe old copy had, because the table filter chips depend on it.--font-sans/--font-mono, fontsource imports) and the docs site are exactly as on main.An earlier revision also rewrote component rem values to design pixels. Before/after builds showed that shrinking components by about 19% in the 16px-root apps, so it was reverted and will ship separately with design QA.
Breaking (release as 4.0.0)
--letter-spacing,--line-height-142/145/150/166/171and--link-colorcustom properties are no longer defined. Their groudon equivalents are--zap-letter-spacing,--zap-text-*-line-heightand--zap-link-color. Nothing in charizard or any consuming app references the old names (checked on every app's branch).:root { --zap-base-font-size: 13; }. The console's paired PR does this.Verification
Production builds of
mainand of each branch were served locally side by side, and headless Chrome compared every rendered element (font size, line height, weight, family, letter spacing, and box x/y/w/h):line-height: normalgets an 18px line box instead of 17px, because the old copy's1.0769remproduced 13.9997px, just under the rounding boundary._typography.csscopies. The console PR also keeps its root font withfont-family: var(--zap-font-sans), which the before/after check caught.🤖 Generated with Claude Code