How to Use Design Tokens
To customize design tokens, define them in your CSS file before initializing Tight components:Font Tokens
Tight provides many tokens that you can use to customize fonts throughout Tight’s components. Tight categorizes text into four main categories:- Body - For blocks of text, user input, main page content
- Label - Denoting purpose, information, or an atomic reason
- Heading - Explains purpose of content before reading further
- Metric - For numbers in graphs, financial statements, etc.
Font Family
Controls the typeface used for text. Global Controls the typeface for all text globally.Font Size
Controls text size across the application. You can override global size scales or target specific text categories. Global Scale Use these to establish consistent sizing across all components:Font Weight
Controls text weight (boldness) throughout the application. Global ScaleLayout Tokens
Border Radius
Controls the corner rounding of UI elements like cards, buttons, and inputs.Border Width
Controls the thickness of borders on UI elements.Color Tokens
Color tokens control the color palette throughout Tight’s UI. They’re organized into semantic categories to ensure consistent visual communication.Brand Colors
Define your core brand identity with primary, secondary, action, etc. colors. Each color includes intensity variants (weak, strong, stronger, strongest) for creating visual hierarchy.