Skip to content

Latest commit

 

History

History
240 lines (184 loc) · 8.02 KB

File metadata and controls

240 lines (184 loc) · 8.02 KB

Aurora - Prism Project Design Token Structure

This document summarizes the design token structure from the Figma design system for the Aurora - Prism Project.

Overview

The design system is organized into several main categories: Colors, Typography, Spacing, Radius, and Effects. Each category contains semantic tokens that map to specific use cases within the application.


Color Tokens

Base Color Palettes

The design system includes comprehensive color palettes with scales from 50 (lightest) to 950 (darkest):

Primary Color Palettes

  • Red: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
  • Yellow: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
  • Green: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
  • Violet: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
  • Greys: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950

Gradient Tokens

  • Gradient - Fill: Primary gradient fill
  • Gradient - Hover: Hover state gradient
  • Gradient - Stroke: Stroke gradient
  • Gradient - Blue: Blue gradient variant

Semantic Color Tokens

Backgrounds

  • Background / Elevated: Elevated background surface
  • Background / Default: Default background surface

Surfaces

  • Surface / Subtle: Subtle surface variant
  • Surface / Default: Default surface
  • Surface / Disabled: Disabled state surface
  • Surface / Gradient-Primary: Primary gradient surface
  • Surface / Gradient-Secondary: Secondary gradient surface
  • Surface / Elevated lv.1: First level elevated surface
  • Surface / Elevated lv.2: Second level elevated surface

Borders

  • Border / Default: Default border color
  • Border / Disabled: Disabled border color
  • Border / Darker: Darker border variant
  • Border / Active: Active state border
  • Border / Secondary: Secondary border
  • Border / tertiary: Tertiary border

Text/Icon/Symbols

  • Text / Title: Title text color
  • Text / Body: Body text color
  • Text / Subtitle: Subtitle text color
  • Text / Icon / primary: Primary icon/text color
  • Text / Icon / darker: Darker icon/text variant
  • Text / Icon / white: White icon/text variant

Semantics

  • Semantic / primary: Primary semantic color
  • Semantic / darker: Darker semantic variant
  • Semantic / white: White semantic variant

Typography Tokens

Type Scale

The typography system includes the following text styles with multiple weight variants:

Headings

  • H1: Bold, Regular, Light
    • Size: 61px (3.813rem)
  • H2: Bold, Regular, Light
    • Size: 49px (3.063rem)
  • H3: Bold, Regular, Light
    • Size: 39px (2.438rem)
  • H4: Bold, Regular, Light
    • Size: 31px (1.938rem)
  • H5: Bold, Regular, Light
    • Size: 24px (1.563rem)

Other Text Styles

  • Headline: Bold, Regular, Light
    • Size: 20px (1.250rem)
  • Body: Bold, Regular, Light
    • Size: 16px (1.000rem)
  • Subtitle: Bold, Regular
    • Size: 13px (0.813rem)
  • Caption: Bold, Regular
    • Size: 10px (0.625rem)
  • Footnote: Bold, Regular
    • Size: 8px (0.500rem)

Font Weights

  • Bold: Heavy weight for emphasis
  • Regular: Standard weight for body text
  • Light: Light weight for subtle text

Spacing & Number Scale

The spacing system uses a consistent numerical scale:

Spacing Values

  • 2 (2px)
  • 4 (4px)
  • 6 (6px)
  • 8 (8px)
  • 12 (12px)
  • 16 (16px)
  • 20 (20px)
  • 24 (24px)
  • 32 (32px)
  • 40 (40px)
  • 999 (999px - likely for full-width/max values)
  • Full (100% width)

Radius Tokens

Border radius values for rounded corners:

  • S (Small): Minimal rounding
  • M (Medium): Standard rounding
  • L (Large): Large rounding
  • XL (Extra Large): Extra large rounding
  • Full: Fully rounded (circular/pill shape)

Effects Tokens

Blur

  • Background Blur: Blur effect for background elements

Icon Tokens

Navigation & UI Icons

These icons should be used across all screens for consistency. Each icon has default (white), green (active), and dark variants where available.


Token Organization Structure

The design tokens are organized hierarchically:

Design Tokens
├── Colors
│   ├── Base Palettes (Red, Yellow, Green, Violet, Greys)
│   ├── Gradients
│   └── Semantic Tokens
│       ├── Backgrounds
│       ├── Surfaces
│       ├── Borders
│       ├── Text/Icon/Symbols
│       └── Semantics
├── Typography
│   ├── Headings (H1-H5)
│   └── Text Styles (Headline, Body, Subtitle, Caption, Footnote)
├── Spacing
│   └── Number Scale (2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 999, Full)
├── Radius
│   └── Size Variants (S, M, L, XL, Full)
└── Effects
    └── Blur

Usage Notes

  1. Color Tokens: Use semantic tokens (e.g., Text / Title) rather than raw color values to ensure consistency and maintainability.

  2. Typography: Each text style has multiple weight variants. Choose the appropriate weight based on hierarchy and emphasis.

  3. Spacing: The number scale provides consistent spacing throughout the application. Use these values for padding, margins, and gaps.

  4. Radius: Apply radius tokens consistently to maintain visual harmony across rounded elements.

  5. Gradients: Use gradient tokens for surfaces and backgrounds that require depth and visual interest.


Implementation Recommendations

When implementing these tokens in code:

  1. CSS Variables: Map tokens to CSS custom properties for easy theming
  2. Type Safety: Create TypeScript interfaces for token names
  3. Documentation: Keep this document updated as tokens evolve
  4. Naming Convention: Follow the semantic naming structure (e.g., surface-default, text-title)
  5. Accessibility: Ensure color contrast ratios meet WCAG guidelines when using text tokens

Last updated: Based on Figma file structure analysis Figma File: Aurora - Prism Project