@adyen/bento-design-tokens
v1.24.0
Published
## Introduction
Downloads
132,666
Keywords
Readme
Bento Design Tokens
Introduction
Welcome to the Bento Design Tokens library!
The aim of this library is to maintain design consistency across various products at Adyen.
Design tokens are semantic values that are used in Figma designs and CSS styles.
Style Dictionary
We have opted to use the Style Dictionary token creation tool that resides
in the @adyen/bento-design-tokens
package.
The Style dictionary uses 3 layers of tokens:
Definitions - All the static literal definitions
Example: color.grey.30
Aliases - Semantic layer of tokens relating to a specific context or abstraction
Example: background-color-interacted
Components - Component-specific tokens are representation of every theme-able value associated with a component
Example: toggle-checked-background-color
For further explanation please check Adobe Spectrum documentation.
Design tokens package:
The design tokens package tokens
folder contains 2 folders:
- base
- aliases (read-only)
- components
- definitions (read-only)
- themes
- legacy
- aliases
- components
- definitions
- legacy