Repository navigation
Consume HIG packages for docs shell, controls and callouts - #26
Merged
Merged
Conversation
Replace the copied HIG CSS distribution and the hand-written button, switch, slider, input and install-tab primitives with the HIG 0.1.0 candidate packages (@bloxwap/hig-tokens/css, @bloxwap/hig-react/css and Tabs/IconButton/Button/Switch/Slider/Field/Surface/Callout). The tarballs are the unmodified dry-run output of bloxwap/hig@7c67a07, vendored with checksums that npm run lint verifies. The preset board, Haptic targets, Vaul drawer, Fumadocs static search, /haptic base path and platform capability language stay SDK-owned. lucide-react is dropped (it duplicated fumadocs-ui's own copy). Adds smoke coverage for install-tab keyboard navigation and copy, keyboard search to a deep link, and HIG callout/control geometry, plus before/after measurements and screenshots. Part of bloxwap/hig#34. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Part of bloxwap/hig#34 (Haptic row). The Haptic docs now load their palette, control geometry and shared controls from the HIG 0.1.0 candidate packages. Before this PR they used a copied CSS file plus primitives written by hand in this repo. The SDK demos and docs hosting stay the same.
Changes
apps/docsinstalls@bloxwap/hig-tokens,@bloxwap/hig-contractsand@bloxwap/hig-reactfromvendor/bloxwap-hig/*.tgz. These are the unmodified output ofnpm ci && npm run build && npm run release:dry-run -- --channel candidateat bloxwap/hig@7c67a07. They are installed throughfile:dependencies, and rootoverridespoint HIG's internal dependencies at the same files.global.cssimports@bloxwap/hig-tokens/cssand@bloxwap/hig-react/css.styles/hig/(the copied distribution from Add HIG semantic haptic adapters and migrate docs shell tokens #25) is deleted.styles/tokens.cssis now only a Fumadocs/Tailwind bridge with no color literals.Tabs+IconButton.Switch/Slider.ButtonandField/Input. Links and the Vaul close button use the.hig-buttonrecipe.Surface/Textwith a focusablepre.Callout: renders the HIGCallout, used for the hardware-certification limits on the Platforms and HIG pages..btn*,.switch,.board-slider,.demo-inputand.install-tabsCSS is removed.lucide-reactis removed (it duplicated the copy that fumadocs-ui installs for itself).Hapticwrappers, the Vaul drawer demo, the Fumadocs shell and static Orama search, the/hapticbase path, metadata/sitemap/robots/deep links, API examples,@bloxwap/fontNext loaders, and the platform capability/certification wording.npm run lint(.github/scripts/hig-check.mjs) checks the tarball SHA-256 values, the package CSS imports, and that no local palette literals or--hig-*redefinitions exist.check-export.mjsfails if a native TTF from the tokens tarball ends up in the export.playwright.config.tsacceptsDOCS_PORT; the default is still 4177.Measurements
Static export with
/haptic. Details in.github/evidence/hig-34/bytes.jsonand the README.Removed files:
apps/docs/styles/hig/{tokens.css,LICENSE,README.md}.Screenshots (Playwright Chromium, reduced motion, desktop 1440×900 and mobile 390×844) for home, the preset board demo, API and interaction examples, before and after:
.github/evidence/hig-34/.Known exceptions
@bloxwap/hig-reactpins its optional Radix peers to1.1.15. fumadocs-ui already resolves1.2.0, so npm nests 48 Radix packages that the docs never import, and none of them reach the bundle. npmoverridesdo not apply to peer edges, andlegacy-peer-depswould drop peers the package tests need.recipesentry.@bloxwap/hig-react/recipesstatically importsoverlay, which needs all four Radix peers. The docs therefore build the CodeWindow recipe fromsurfaceinstead of importingrecipes.vendor/bloxwap-hig/README.md.Verification (local macOS, Node 24.10.0 / npm 11.6.1)
npm ci✅node --test .github/scripts/wait-for-registry.test.mjs: 8/8 ✅npm run lint✅npm run typecheck✅npm run coverage: 79 tests ✅npm run test:matrix: React 18.3.1 / 19.3.0 ✅npm run size: 3,840 gzip bytes of an 8,192 budget ✅npm run pack:check✅npm audit --audit-level=high: 0 vulnerabilities ✅NEXT_PUBLIC_BASE_PATH=/haptic npm run docs:check(9 snippets) ✅npm run docs:build(routes, base-path links, no TTF) ✅DOCS_PORT=4143 npm run docs:smoke(browser, automated): 21/21 passed in chromium, webkit and mobile-chromium (Pixel 7), and 63/63 with--repeat-each=3.main). Firefox runs in CI.npm run test:browser(package-only, unchanged by this PR) needs port 4176 and an audio sink, so it was left to CI.CI on 8df3523 is green (
gh pr checks --watch). Documentation: docs:check, docs:build and docs:smoke 28/28 across chromium, firefox, webkit and mobile-chromium. Tests: lint (3 tarballs verified), typecheck, coverage, matrix, size, pack:check, audit, and test:browser 9/9. GitGuardian passed. The deploy and live smoke jobs are skipped on PRs.No physical iOS/Android hardware, simulator or emulator haptics, VoiceOver/TalkBack, or tactile observation is claimed. Those remain haptic#9/#7. No npm publish, tag or release was performed.
Rollback: revert this PR.
🤖 Generated with Claude Code