Responsive Typography#189
Merged
Merged
Conversation
david-crespo
pushed a commit
to oxidecomputer/console
that referenced
this pull request
May 27, 2026
Upgraded design system includes tweaked type tokens. Existing `text-sans-*` callsites continue to work so that's all left the same. Will switch out for semantic responsive versions in some places when I work on responsive console. oxidecomputer/design-system#189
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a layered typography architecture and the first responsive semantic tokens (
heading-*). Existingtext-sans-*callsites continue to work.What's new
Three layers
text-sans-11 / 12 / 14 / 16 / 18 / 20 / 22 / 25 / 28 / 36 / 50 / 52 / 65.text-sans-sm / md / lg / xl / 2xl / 3xl / 4xl / 5xlnow@applythe matching pixel primitive. Figma comments retained on the aliases so the Figma → code mapping stays intact.5xlis new (65px) to cover the marketing-scale display sizes.heading-display / heading-xl / heading-lg / heading-mdstep through primitives at 600 / 800 / 1000px.Letter-spacing curve
All sans primitives now use
emfor letter-spacing along an optical tracking curve (0.861 / size − 0.0383 em). Small text opens up for legibility, display sizes tighten. Zero crossing sits around 22px. Was doing this manually previously, but this is a bit more consistent.Preview
New
preview/TypographyShowcase.tsxwith a viewport-width ruler that highlights active breakpoints, plus a Components / Typography view toggle in the preview header. Resize the window to verify each heading token's steps.Not here
Canary:
npm install @oxide/design-system@6.2.1-canary.1e4566b