Skip to content

Design Tokens

Design tokens are the foundational elements of our design system, providing consistent values for colors, typography, spacing, and other design properties.

What are Design Tokens?

Design tokens are named entities that store visual design attributes. They act as a bridge between design and development, ensuring consistency across all platforms and implementations.

Token Categories

Color Tokens

  • Primary colors
  • Secondary colors
  • Semantic colors (success, warning, error)
  • Neutral colors

Typography Tokens

  • Font families
  • Font sizes
  • Font weights
  • Line heights

Spacing Tokens

  • Margins
  • Padding
  • Grid units
  • Component spacing

Shadow Tokens

  • Elevation levels
  • Shadow definitions
  • Depth indicators

Implementation

Our design tokens are implemented as CSS custom properties, making them easy to use and customize:

:root {
  --color-primary: #673ab7;
  --color-secondary: #ffc107;
  --spacing-unit: 8px;
  --typography-base: 16px;
}

Usage

Design tokens ensure visual consistency and make theme customization straightforward. Refer to specific token documentation for implementation details.