npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hpe-design-tokens

v2.5.0

Published

Design tokens for use with the HPE Design System.

Readme

hpe-design-tokens

Design tokens for use with the HPE Design System.

Documentation Index

Install

With pnpm:

pnpm i hpe-design-tokens

With yarn:

yarn add hpe-design-tokens

With npm:

npm i hpe-design-tokens

Usage

For usage instructions, see HPE Design System design tokens documentation.

Quick Start (Maintainers)

From repository root:

pnpm --filter hpe-design-tokens test
pnpm --filter hpe-design-tokens test:contracts
pnpm --filter hpe-design-tokens sync-tokens-to-figma -- --env=test --dry-run

See docs/OPERATIONS.md for full sync runbooks, troubleshooting, and script coverage.

Semantic Color Parity Contract

Semantic color import/export behavior is protected by parity tests and golden fixtures.

Terminology note: in this monorepo, treat these parity artifacts as snapshot files (referred to here as golden fixtures). They are contract snapshots and should be updated only for intentional behavior changes, with review of the resulting diff.

Semantic role metadata note:

  • role: null means the token path does not include a semantic role segment.

  • role.family identifies the role family grouping (e.g. accent); it is null for single-slot roles such as disabled.

  • role.name is the canonical role name within its target (e.g. primary, disabled, purple).

  • Parity scope:

    • Legacy-vs-new adapter equivalence tests (semantic_color_figma_adapter_parity.test.ts).
    • Golden output verification for export token output and import payload output (semantic_color_payload_golden.test.ts).
    • Boundary vectors for non-canonical accent naming in both directions:
      • Export fixture coverage for incoming Figma names such as color/background/accent/purple-custom.
      • Import fixture coverage for aliases such as color/background/accent/purple/custom/REST that must resolve to canonical variable IDs.
  • Golden fixtures:

    • src/tests/fixtures/semantic-color-parity/export-output.golden.json
    • src/tests/fixtures/semantic-color-parity/import-output.golden.json

When Golden Fixtures Should Change

Update golden fixtures only when semantic color normalization or payload behavior intentionally changes.

Examples:

  • Introducing a deliberate naming contract change in import/export.
  • Adjusting canonical mapping behavior for accent, focus, transparent, or interaction/scale handling.

Do not update fixtures to bypass a failing test without understanding the behavior delta.

Required Workflow Before PR

From repository root:

Always run:

pnpm --filter hpe-design-tokens run test:parity
pnpm --filter hpe-design-tokens test -- src/tests/token_export.test.ts src/tests/token_import.test.ts src/tests/token_import_alias_resolution.test.ts src/tests/semantic_color_parser.test.ts

Run this only when you intentionally changed semantic color import/export behavior and expect golden fixture output updates:

pnpm --filter hpe-design-tokens run test:parity:update

If fixture files change, include them in the same commit as the code change that caused the intentional behavior delta.

License

Apache-2.0