| Package | Description |
|---|---|
@hyphen/hyphen-components |
A React component library to power all Hyphen UI |
@hyphen/hyphen-design-tokens |
Design tokens (color, spacing, typography, icons, logos) that power all Hyphen UIs |
Both packages are versioned and released together: one GitHub release publishes both to npm with the same version.
pnpm add @hyphen/hyphen-components
See the components README for usage, global CSS imports, and documentation links.
Design tokens can also be consumed directly on other platforms:
pnpm add @hyphen/hyphen-design-tokens — see the
design tokens README.
This is a pnpm workspace. All commands run from the repo root:
pnpm install # install all workspace dependencies
pnpm build # build design tokens, then components
pnpm test # build tokens, then run component type checks and unit tests
pnpm lint # lint all packages
pnpm storybook # run the component Storybook locallyThe component workspace uses TypeScript 6.0 and targets ES2020, matching the component bundle. Local development uses Node.js 24.11+ on the 24.x line or Node.js 26.x. CI uses Node.js 24, matching Hyphen App and the release workflow.
pnpm will not resolve dependency versions published within the previous seven days. This policy covers direct and transitive dependencies and is verified against the lockfile in CI.
If an urgent security fix cannot wait for the quarantine period, add only the
exact package version to minimumReleaseAgeExclude in pnpm-workspace.yaml.
Explain the exception in the pull request and remove it once the version is
seven days old. Do not add package-wide or scope-wide exclusions.
Changing a color, icon, or any other token is now a normal PR to this
repo: edit the sources in packages/design-tokens (token JSON in
tokens/, icon SVGs in assets/icons) and the same PR can update the
components that use them.
Releases are automated with semantic-release from conventional commit messages. When a GitHub release is published, the Release workflow stamps the tag's version into both packages and publishes them to npm in dependency order.
