feat(system)!: refine typography - #15
Merged
Merged
Conversation
Minor bump across the fixed package group (→ 0.1.0) for the new font-stretch, font-variation-settings, and word-spacing tokens, the text-composite restructuring, and the per-element word-spacing fix. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for setds ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Tune the type-step and leading tokens for numbered-list heading markers (h2/h3), and add a baseline h3 marker rule. Tidy planning notes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Summary
Refines the Set typography system — new tokens, composite restructuring, and a per-element word-spacing fix — across both brands (mnsp + wrfr).
New tokens
font-stretchscale (primitive steps + semanticnormal/semiCondensed/condensed/ultraCondensed). Every text composite now bundles a pairedfontStretch, and responsive font-stretch travels with the responsive composites, so headings scale their width across breakpoints without a component media query.wordSpacing.defaultandwordSpacing.monospacedtokens.fontVariationSettingstoken, restated after everyfontshorthand (which resets it).Fixes / refactors
.set, anemvalue inherited as a frozenpx; it's now applied per element via an inherited--set-word-spacingcustom property, so it re-resolves against each element's own font size. The monospaced (0) override cascades correctly to descendants (code, table cells).metrictokens directly (removed theprose.codealias layer).Docs
-fontsuffix — e.g.--set-typography-text-heading-2xl→--set-typography-text-heading-2xl-font. Each size also exposes--set-typography-text-*-font-stretch.--set-typography-prose-code-padding-*removed — use--set-typography-metric-default-cap-balance/--set-typography-metric-default-side-bearing-single.typography.prose.link.*totypography.prose-link.*in the token JSON (emitted CSS variable names unchanged).Release
Changeset included — minor bump across the fixed package group (
0.0.1 → 0.1.0).🤖 Generated with Claude Code