Skip to main content
Tight’s design tokens are CSS custom properties that control the visual appearance of Tight’s embedded UI components. By overriding these tokens in your application’s CSS, you can customize typography, colors, spacing, and other design elements to match your brand identity. Please refer to the Design reference for information on how to get started with Design Tokens.

How to Use Design Tokens

To customize design tokens, define them in your CSS file before initializing Tight components:
All design tokens are optional. Any token not explicitly set will use Tight’s default values.

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.
Text Type Specific Specify the typeface for different text categories. All text defaults to the font family of the base token unless overwritten.
If you’d like to use the default fonts from Tight you’ll need to include the following additional CSS imports:

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:
Text Type Specific Fine-tune sizes for individual text categories:

Font Weight

Controls text weight (boldness) throughout the application. Global Scale
Text Type Specific

Layout 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.

Surface Colors

Surface colors define backgrounds and containers for UI elements. Base Surfaces
Intent Surfaces Applied to interactive elements like buttons to communicate their purpose and state.

Typography Colors

Controls text colors across all components. Base Colors
Text Type Specific
Accent Colors Used for highlighting special states like successes, warnings, and errors.
Intent Colors Applied to interactive elements like buttons to communicate their purpose and state.

Icon Colors

Controls icon colors throughout the application. These tokens inherit their values from the typography color tokens unless overwritten. Base Colors
Accent Colors
Intent Colors Applied to interactive elements like buttons to communicate their purpose and state.

Border Colors

Controls border colors across the application. Base Layout Borders
Intent Borders Applied to interactive elements like buttons to communicate their purpose and state.

Money Colors

Specialized colors for displaying financial data in reports and graphs.

Animation Tokens

Controls animation timing for transitions and appearance effects.

Shadow Tokens

Controls drop shadows for elevated UI elements like modals, popovers, and cards.