Docs

\

Tokens

\

Installation

|

Design Tokens Installation

Install and setup @founfation-ui/tokens in your project.


@foundation-ui is deployed as a private package

If you want to install @foundation-ui packages, you can either fork the repository or join the community to get an installation token during the Beta program.

Install @founfation-ui/tokens

To get the most out of @foundation-ui/tokens, it is strongly recommended to use it with @foundation-ui/components.

pnpm add @foundation-ui/tokens

@foundation-ui/tokens comes with large built-in libraries of Design Tokens, you'll find colors, font-sizes, spacings, opacities and depths definitions. Each design token come with a key-value and a set of annotations that you can use in your application.

If you want to create custom library, @foundation-ui/core provides a set of methods enabling you to do so.

What are Design Tokens?

Design tokens offer several benefits over traditional design approaches:

Consistency

Design tokens ensure that all UI elements have a consistent look and feel across different platforms and devices.

Scalability

Design tokens can be easily updated and extended to accommodate new design requirements, making it easier to scale a design system.

Efficiency

Design tokens reduce the need for manual coding and enable developers to quickly implement design changes.

Accessibility

Design tokens can be used to create accessible designs by defining appropriate color contrast ratios, font sizes, and other accessibility-related properties.

Built by nnsncl at Foundation UI. The source code is available on Github.