Skip to content

feat(system)!: refine typography - #15

Merged
monospaced merged 4 commits into
mainfrom
refine-typography
Jul 30, 2026
Merged

feat(system)!: refine typography#15
monospaced merged 4 commits into
mainfrom
refine-typography

Conversation

@monospaced

Copy link
Copy Markdown
Owner

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 stretch — a font-stretch scale (primitive steps + semantic normal / semiCondensed / condensed / ultraCondensed). Every text composite now bundles a paired fontStretch, and responsive font-stretch travels with the responsive composites, so headings scale their width across breakpoints without a component media query.
  • Word spacingwordSpacing.default and wordSpacing.monospaced tokens.
  • Font variation settings — a fontVariationSettings token, restated after every font shorthand (which resets it).

Fixes / refactors

  • Word-spacing now scales with font size. Declared once on .set, an em value inherited as a frozen px; it's now applied per element via an inherited --set-word-spacing custom property, so it re-resolves against each element's own font size. The monospaced (0) override cascades correctly to descendants (code, table cells).
  • Inline-code padding reads the metric tokens directly (removed the prose.code alias layer).
  • Fonts — wrfr now ships the Recursive variable font (replacing Fantasque Sans Mono + Playpen Sans); dropped an unused Berkeley Mono width-axis face.

Docs

  • Typography page: paired font/font-stretch specimens, a live prose-link specimen, a word-spacing preview, and a shared "Not used" marker for wrfr-only tokens (font-variation-settings, effect filter).

⚠️ Breaking changes

  • Text composite custom properties gain a -font suffix — 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.
  • Prose link tokens moved from typography.prose.link.* to typography.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

monospaced and others added 2 commits July 30, 2026 14:53
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>
@netlify

netlify Bot commented Jul 30, 2026

Copy link
Copy Markdown

Deploy Preview for setds ready!

Name Link
🔨 Latest commit 9b5a10e
🔍 Latest deploy log https://app.netlify.com/projects/setds/deploys/6a6b66ac5b4b34000809dfcc
😎 Deploy Preview https://deploy-preview-15--setds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@monospaced monospaced changed the title feat: refine typography feat(system)!: refine typography Jul 30, 2026
monospaced and others added 2 commits July 30, 2026 15:43
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>
@monospaced
monospaced merged commit 673f0e4 into main Jul 30, 2026
15 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