Design Tokens Reference
Design Tokens Reference
Section titled “Design Tokens Reference”This reference documents all design tokens defined in src/styles/_design-tokens.scss. These tokens provide a consistent design language across the application using CSS custom properties.
Color Tokens
Section titled “Color Tokens”Primary Palette
Section titled “Primary Palette”The primary color palette is used for brand colors, primary actions, and interactive elements.
Navy Palette
Section titled “Navy Palette”The navy palette provides deeper, more professional tones for headers, navigation, and important content.
Neutral Palette
Section titled “Neutral Palette”The neutral palette provides grays for text, borders, backgrounds, and subtle UI elements.
Semantic Colors
Section titled “Semantic Colors”Semantic colors convey meaning for success, warning, error, and informational states.
Typography Tokens
Section titled “Typography Tokens”Font Families
Section titled “Font Families”--font-family-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";Usage: Default for body text and UI elements
--font-family-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;Usage: Headings, formal content
--font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;Usage: Code blocks, technical content
Font Sizes
Section titled “Font Sizes”Based on a modular scale for consistent typography hierarchy.
| Token | Value | Pixels | Usage |
|---|---|---|---|
--font-size-xs | 0.75rem | 12px | Fine print, captions |
--font-size-sm | 0.875rem | 14px | Small text, labels |
--font-size-base | 1rem | 16px | Body text (default) |
--font-size-lg | 1.125rem | 18px | Lead paragraphs |
--font-size-xl | 1.25rem | 20px | Subheadings |
--font-size-2xl | 1.5rem | 24px | H3 headings |
--font-size-3xl | 1.875rem | 30px | H2 headings |
--font-size-4xl | 2.25rem | 36px | H1 headings |
--font-size-5xl | 3rem | 48px | Hero headings |
--font-size-6xl | 3.75rem | 60px | Display headings |
Font Weights
Section titled “Font Weights”| Token | Value | Usage |
|---|---|---|
--font-weight-thin | 100 | Very light text |
--font-weight-light | 300 | Light text |
--font-weight-normal | 400 | Body text (default) |
--font-weight-medium | 500 | Emphasized text |
--font-weight-semibold | 600 | Subheadings |
--font-weight-bold | 700 | Headings, buttons |
--font-weight-extrabold | 800 | Strong emphasis |
--font-weight-black | 900 | Maximum emphasis |
Line Heights
Section titled “Line Heights”| Token | Value | Usage |
|---|---|---|
--line-height-none | 1 | Single line elements |
--line-height-tight | 1.25 | Compact text |
--line-height-snug | 1.375 | Headings |
--line-height-normal | 1.5 | Body text (default) |
--line-height-relaxed | 1.625 | Comfortable reading |
--line-height-loose | 2 | Spaced paragraphs |
Spacing Tokens
Section titled “Spacing Tokens”8pt Grid System
Section titled “8pt Grid System”All spacing follows an 8-point grid for consistent rhythm and alignment.
Complete Spacing Scale
Section titled “Complete Spacing Scale”| Token | Value | Pixels | Common Usage |
|---|---|---|---|
--space-0 | 0 | 0px | Reset spacing |
--space-px | 1px | 1px | Hairline borders |
--space-0-5 | 0.125rem | 2px | Micro spacing |
--space-1 | 0.25rem | 4px | Tight spacing |
--space-2 | 0.5rem | 8px | Component padding |
--space-3 | 0.75rem | 12px | Small gaps |
--space-4 | 1rem | 16px | Default spacing |
--space-6 | 1.5rem | 24px | Section padding |
--space-8 | 2rem | 32px | Card padding |
--space-12 | 3rem | 48px | Section margins |
--space-16 | 4rem | 64px | Large sections |
--space-24 | 6rem | 96px | Page sections |
Border Tokens
Section titled “Border Tokens”Border Radius
Section titled “Border Radius”| Token | Value | Pixels | Usage |
|---|---|---|---|
--radius-none | 0 | 0px | Sharp corners |
--radius-sm | 0.125rem | 2px | Subtle rounding |
--radius-base | 0.25rem | 4px | Default rounding |
--radius-md | 0.375rem | 6px | Medium rounding |
--radius-lg | 0.5rem | 8px | Cards, buttons |
--radius-xl | 0.75rem | 12px | Large cards |
--radius-2xl | 1rem | 16px | Hero elements |
--radius-3xl | 1.5rem | 24px | Decorative |
--radius-full | 9999px | Full | Pills, circles |
Border Widths
Section titled “Border Widths”| Token | Value | Usage |
|---|---|---|
--border-width-0 | 0 | No border |
--border-width-1 | 1px | Default borders |
--border-width-2 | 2px | Emphasized borders |
--border-width-4 | 4px | Strong emphasis |
--border-width-8 | 8px | Decorative |
Shadow Tokens
Section titled “Shadow Tokens”Shadows create depth and hierarchy in the interface.
Z-Index Tokens
Section titled “Z-Index Tokens”Consistent z-index values for proper layering.
| Token | Value | Usage |
|---|---|---|
--z-index-hide | -1 | Hidden behind |
--z-index-auto | auto | Normal flow |
--z-index-base | 0 | Base level |
--z-index-docked | 10 | Docked elements |
--z-index-dropdown | 1000 | Dropdowns |
--z-index-sticky | 1100 | Sticky headers |
--z-index-banner | 1200 | Banners |
--z-index-overlay | 1300 | Overlays |
--z-index-modal | 1400 | Modals |
--z-index-popover | 1500 | Popovers |
--z-index-skipLink | 1600 | Skip links |
--z-index-toast | 1700 | Toast notifications |
--z-index-tooltip | 1800 | Tooltips (highest) |
Transition Tokens
Section titled “Transition Tokens”Duration
Section titled “Duration”| Token | Value | Usage |
|---|---|---|
--transition-duration-75 | 75ms | Instant feedback |
--transition-duration-100 | 100ms | Quick transitions |
--transition-duration-150 | 150ms | Smooth interactions |
--transition-duration-200 | 200ms | Default duration |
--transition-duration-300 | 300ms | Moderate animations |
--transition-duration-500 | 500ms | Slow animations |
--transition-duration-700 | 700ms | Deliberate motion |
--transition-duration-1000 | 1000ms | Attention-grabbing |
Timing Functions
Section titled “Timing Functions”| Token | Value | Usage |
|---|---|---|
--transition-timing-linear | linear | Constant speed |
--transition-timing-in | cubic-bezier(0.4, 0, 1, 1) | Ease in |
--transition-timing-out | cubic-bezier(0, 0, 0.2, 1) | Ease out |
--transition-timing-in-out | cubic-bezier(0.4, 0, 0.2, 1) | Ease in-out |
Layout Tokens
Section titled “Layout Tokens”Max Width Constraints
Section titled “Max Width Constraints”| Token | Value | Pixels | Usage |
|---|---|---|---|
--max-width-none | none | - | Full width |
--max-width-xs | 20rem | 320px | Narrow forms |
--max-width-sm | 24rem | 384px | Small cards |
--max-width-md | 28rem | 448px | Medium content |
--max-width-lg | 32rem | 512px | Large cards |
--max-width-xl | 36rem | 576px | Form layouts |
--max-width-2xl | 42rem | 672px | Article width |
--max-width-3xl | 48rem | 768px | Blog posts |
--max-width-4xl | 56rem | 896px | Wide content |
--max-width-5xl | 64rem | 1024px | Page content |
--max-width-6xl | 72rem | 1152px | Large layouts |
--max-width-7xl | 80rem | 1280px | Main container |
Breakpoints
Section titled “Breakpoints”| Token | Value | Usage |
|---|---|---|
--max-width-screen-sm | 640px | Small screens |
--max-width-screen-md | 768px | Medium screens |
--max-width-screen-lg | 1024px | Large screens |
--max-width-screen-xl | 1280px | Extra large |
--max-width-screen-2xl | 1536px | 2X large |
Dark Mode Support
Section titled “Dark Mode Support”All color tokens automatically adjust for dark mode using a prefers-color-scheme: dark media query. The color scales are inverted to maintain proper contrast.
Component Token Aliases
Section titled “Component Token Aliases”Pre-configured token combinations for common components.
Card Tokens
Section titled “Card Tokens”| Token | Value | Description |
|---|---|---|
--card-background | var(--color-neutral-50) | Card background |
--card-border | var(--color-neutral-200) | Card border |
--card-radius | var(--radius-lg) | Card rounding |
--card-shadow | var(--shadow-base) | Card elevation |
--card-gap | var(--space-4) | Inner spacing |
--card-padding | var(--space-6) | Card padding |
Button Tokens
Section titled “Button Tokens”| Token | Value | Description |
|---|---|---|
--button-radius | var(--radius-base) | Button rounding |
--button-padding-x | var(--space-4) | Horizontal padding |
--button-padding-y | var(--space-2) | Vertical padding |
--button-font-weight | var(--font-weight-medium) | Button text weight |
Form Tokens
Section titled “Form Tokens”| Token | Value | Description |
|---|---|---|
--input-radius | var(--radius-base) | Input rounding |
--input-border | var(--color-neutral-300) | Input border |
--input-focus-border | var(--color-primary-500) | Focus state |
--input-padding-x | var(--space-3) | Horizontal padding |
--input-padding-y | var(--space-2) | Vertical padding |
Usage Examples
Section titled “Usage Examples”.button { background-color: var(--color-primary-500); color: white; padding: var(--button-padding-y) var(--button-padding-x); border-radius: var(--button-radius); font-weight: var(--button-font-weight); transition-duration: var(--transition-duration-200); transition-timing-function: var(--transition-timing-in-out);
&:hover { background-color: var(--color-primary-600); box-shadow: var(--shadow-md); }}.card { background-color: var(--card-background); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-padding); box-shadow: var(--card-shadow); max-width: var(--max-width-2xl);}---// No imports needed - tokens available globally---<div class="hero" style=" padding: var(--space-16) var(--space-4); background: var(--color-primary-50);"> <h1 style=" font-size: var(--font-size-5xl); font-weight: var(--font-weight-bold); color: var(--color-primary-900); "> Hero Title </h1></div>Related Documentation
Section titled “Related Documentation”- Utility Classes Reference - Pre-built utility classes using these tokens
- Design System Overview - Complete design system guide
- Figma Design Tokens - Figma-extracted design tokens
Source File: src/styles/_design-tokens.scss