This design system uses CSS variables to enable consistency, scalability, and easy customization across components and themes.
The theme.ts
file contains all the design tokens used in the design system.
Tokens are converted to CSS variables and used throughout the design system. For example, the following tokens:
Are converted to CSS variables:
This token-based approach allows seamless theming and ensures consistency across all components and layouts.
Convention
CSS variables must be defined without color space function.
Available Tokens
Here is a list of available tokens that you can use to customize the design system.
Color
Color tokens define the color palette used in the design system.
Shadow
Shadow tokens provide depth to UI components, emphasizing a layered appearance and hierarchical structure.
Border Radius
Border radius tokens define the border radius.
Typography
Typography tokens define the font family, size, weight, line height, and letter spacing.
Size and Spacing
Size and spacing tokens define the size and spacing scale to maintain consistency across components.
Animation
Animation tokens control transition durations and easing curves.
Z-Index
Z-index tokens define the stacking order of components in the layout hierarchy.