Repository navigation
Native fonts package, token font variables, and radius/type/motion/density roles (#64, #65, #66) - #75
Merged
Merged
Conversation
…ype/motion/density roles (#64 #65 #66) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Next loader (#65) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
joeblau
force-pushed
the
claude/hig-64-65-66
branch
from
October 15, 2026 16:07
83bd8d4 to
360ce28
Compare
This was referenced Oct 15, 2026
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.
Closes #64. Closes #65. Refs #66: shipped here. The Chart follow-up that deletes
hig-roles.generated.cssis bloxwap/chart#55.#64: native TTFs leave the web tokens package
@bloxwap/hig-native-fonts(packages/native-fonts). It containsfonts/*.ttf(still generated bynpm run generate:fonts, now written here),fonts/manifest.json,fonts/OFL.txt, a typedfontManifestexport (src/index.ts, generated from the manifest and drift-checked) and./manifest.@bloxwap/hig-tokensdrops./fonts/*andassets/fonts, so the tarball now holds only CSS, JS and the mark.release:dry-runfails if any non-native-fonts tarball contains.ttf/.otf/.woff*. It also recordspackedSizes.webTokens/packedSizes.nativeFontsin the release report.smoke:packed-nativechecks that the installed@bloxwap/hig-native-fontshashes match the generator manifest, that Metro export bundles the three registered faces (by SHA-256), and that the installed tokens package has no font files.require('@bloxwap/hig-native-fonts/fonts/…').docs/migration/native.md#native-fonts-moved-out-of-hig-tokens, including Satori/OG users and monorepo#4540.docs/installation.mdand the font budget rows indocs/governance/quality.mdare updated.#65: control CSS reads token font variables
@bloxwap/hig-tokens/cssdefines--hig-font-sans: var(--font-bloxwap-sans, 'Bloxwap Sans'), system-ui, sans-serifand the matching--hig-font-mono. Next hosts that put the@bloxwap/fontloader.variableclasses on<html>get the loaded faces with no bridge. Plain@font-facehosts fall back to the literal families..hig-button/.hig-numberusevar(--hig-font-sans|mono, <literal fallbacks>).smoke:packed-nextnow serves the packed Next consumer and runsnext-browser-smokeagainst it. It asserts that the computed first family of.hig-button/.hig-numberpassesdocument.fonts.checkand that aFontFaceof that family hasstatus === 'loaded', sincecheckalone also returns true when no face matches. The workflow now installs Playwright before this step.browser-smoke(Chromium/Firefox/WebKit) runs the same check on the plain@font-faceVite fixture and expects exactlyBloxwap Sans/Bloxwap Mono.#66: radius, type, motion and density roles
--hig-radius-{sm,md,lg,xl,pill}.--hig-type-{caption,label,body,title,display}-{size,line-height,weight}, plus a--hig-type-<role>font shorthand.--hig-motion-duration-{fast,base,slow}and--hig-motion-easing-standard. Durations are 0ms underprefers-reduced-motion: reduceand[data-hig-motion='reduced'].--hig-density-{comfortable,compact}-{control,target,gap}, plus active--hig-density-{control,target,gap}that switch under[data-hig-density='compact'].packages/tokens/source.json, which gainseasingandfont.nativeMetricsis unchanged, so native bundles are unaffected.check-drift.mjsfails.docs/foundations/platform.mdand indocs/installation.md(Tokens only / plain CSS table and example).Proof (local, Node 22.22.0 / npm 11.6.1)
npm run generate:fonts(fonttools 4.61.1, brotli 1.2.0)npm run check(build, lint + drift, typecheck, 94 vitest + native jest)npm run examples:checknpm run qualitypackages/native-fonts)smoke:ssr,smoke:packed,smoke:packed-boundaries,smoke:packed-examplessmoke:packed-nativesmoke:packed-next.hig-button→BloxwapSans, "Bloxwap Sans Scripts", …withcheck: true, loaded: true, and.hig-number→BloxwapMono, …withcheck: true, loaded: true(evidence/packed-next-browser.json). Before this change the literal'Bloxwap Sans'could never match the loader'sBloxwapSansfamilybrowser-smokem5 ×3 engines (plain@font-facefont check added)BloxwapSansRegular/SemiBoldfrom the new package)release:dry-run --channel candidate+smoke:release-artifact@bloxwap/hig-tokens: 8,109 B, 0 font files (was about 4.3 MB).@bloxwap/hig-native-fonts: 4,420,375 B, 15 TTFsDevice checks: no KVM, so Android emulator and iOS Simulator runs were not repeated. Native registration is proven by the Metro export (Android/iOS) and the Expo-web gallery only.
No publish, tag, release or deploy.
🤖 Generated with Claude Code