@fe-design-systems/tokens
v0.1.2
Published
Design tokens for FE Design Systems
Maintainers
Readme
@fe-design-systems/tokens
Design tokens for FE Design Systems.
This package contains the shared design tokens used across FE Design Systems packages.
Installation
npm install @fe-design-systems/tokensUsage
import { primitiveTokens, semanticTokens } from "@fe-design-systems/tokens";
console.log(primitiveTokens.color.blue500);
console.log(semanticTokens.colorPrimary);Token Structure
The package provides two token layers:
Primitive Tokens
Primitive tokens contain the base values of the design system, such as colors, spacing, and border radius.
primitiveTokens.color;
primitiveTokens.spacing;
primitiveTokens.radius;Semantic Tokens
Semantic tokens describe how those values are used within the design system.
semanticTokens.colorPrimary;
semanticTokens.colorText;
semanticTokens.colorBorder;
semanticTokens.colorError;Framework Support
The tokens package is framework-agnostic and is intended to be shared across different UI implementations.
Current consumers:
- React
- Vue support planned
