npm.io
5.0.0 • Published 1h ago

@hashicorp/design-system-tokens

Licence
MPL-2.0
Version
5.0.0
Deps
0
Size
271 kB
Vulns
0
Weekly
29.5K

design-system-tokens

A package containing the design tokens of the Helios Design System.

npm version

Compatibility

Any platform/framework that can process CSS files and can use CSS custom properties ("variables") or use CSS helper classes.

Installation

pnpm add @hashicorp/design-system-tokens

Then import one of those files in your app's style file (app.scss or similar):

// to use design tokens as CSS variables
//
~/dist/products/css/tokens.css  // for product applications

// to use the CSS helper classes
//
~/dist/[products]/css/helpers/colors.css     // for color styles
~/dist/[products]/css/helpers/elevation.css  // for elevation styles
~/dist/[products]/css/helpers/typography.css // for typographic styles
~/dist/[products]/css/helpers/focus-ring.css // for focus-ring style

Usage

See the dedicated page on the components website: https://helios.hashicorp.design/foundations/tokens

Contributing

See the Contributing guide for details.

License

This project is licensed under the Mozilla Public License 2.0.

Versioning

We use SemVer for versioning.

Keywords