Repository navigation
feat(docs): consume HIG packages instead of copied CSS and fonts (bloxwap/hig#58) - #47
Merged
Merged
Conversation
…xwap/hig#58) Install the HIG 0.1.0 candidate tarballs (bloxwap/hig@19c7561) from vendor/bloxwap-hig, import @bloxwap/hig-tokens/css and @bloxwap/hig-react/css, and delete vendor/hig, the generated alias layer and the committed TTFs. Install, copy, search and callout controls use HIG Tabs, InstallCommand, IconButton, Alert, EmptyState and Callout. CI adds the scoped HIG drift check and a Playwright smoke test of the static export. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Refs bloxwap/hig#58. The docs site now gets HIG from packages instead of copied CSS, palette and fonts. This follows hig's
docs/governance/new-repository.mdand the five SDK docs pilots (sfx#50 and others).What changed
hig-tokens,hig-react,hig-contracts) are built from bloxwap/hig@19c7561 withrelease:dry-run --channel candidate. They are vendored invendor/bloxwap-hig/and installed throughfile:dependencies. The README andprovenance.jsonrecord the hashes. Nothing was published, tagged or released.@bloxwap/hig-tokens/cssand@bloxwap/hig-react/cssreplacevendor/hig/tokens.cssandstyles/hig.generated.css.--hig-*roles; the--bloxwap-*/--card/--space-*alias layer is gone..btnfamily and focus ring are removed.global.css.docs:checkchecks them against the installedtokens.Tabs+InstallCommandfor the install pickerIconButtonfor code copyAlertfor the search error andEmptyStatefor search with no resultsCalloutfor MDX<Callout>hig-buttonintents for the hero and 404 linksapps/docs/fontsis deleted. OG cards use@bloxwap/hig-tokenscolors and its Bold/Black TTFs. The rendered cards are byte-identical.hig-drift.jsonplus a CI step that runsdrift.mjsfrom the same pinned HIG commit. Newnpm run docs:smoke(Playwright) runs in the Documentation workflow./agent-clibase path, metadata, social cards and deep links.Before / after (full report, measurements.json)
Where the dependency increase comes from:
playwright(dev).@bloxwap/hig-react/recipesstatically importsoverlay.js, which needsreact-dropdown-menuandreact-tooltip. Without them the build fails with "Module not found". The overlay code is tree-shaken out, so the JS is the same as composing the recipe by hand. This is an upstream HIG packaging issue.Validation (local Linux x64, Node 24.22.0)
npm run build✔,npm run lint✔,npm run typecheck✔,npm test✔npm run docs:check✔ (content, HIG provenance/installed versions/host token values, typegen, tsc)NEXT_PUBLIC_BASE_PATH=/agent-cli npm run docs:build✔: 16 HTML pages, 597 local links/assets, 13 social cards, base path/agent-clinode <hig@19c7561>/scripts/drift.mjs --root . --config hig-drift.json:Scoped anti-drift: passed (36 files, 0 dated exceptions). On main it reports 6 violations (vendor/hig import ×2, 2 TTFs, copied palette and token definitions).npm run docs:smoke(Chromium,/agent-clistatic preview) passes 10/10 here and 10/10 on main. It covers:Screenshots
Visible changes:
Not covered
planning/adoption.jsonrow lives in bloxwap/hig. It gets updated in a follow-up hig PR once this merges.Rollback: revert this PR.
🤖 Generated with Claude Code