Skip to content

Design System Overview

Velocity uses a three-tier token system built on OKLCH colors for perceptually uniform color transitions.

Reference Tokens

Raw values like grayscale and brand color scales. These are the foundation.

Semantic Tokens

Intent-based tokens like background, foreground, border. Used in components.

Inverted Tokens

For dark sections on light pages, maintaining proper contrast.

ClassPurpose
bg-backgroundPrimary background
bg-background-secondarySecondary background
text-foregroundPrimary text
text-foreground-mutedMuted/subtle text
ClassPurpose
bg-primaryPrimary button background
text-primary-foregroundPrimary button text
bg-secondarySecondary button background
ClassPurpose
border-borderStandard border
border-border-strongEmphasized border
ClassPurpose
bg-surface-invertDark section background
text-on-invertText on dark sections

Velocity uses OKLCH for perceptually uniform colors:

oklch(62.5% 0.22 38)
↑ ↑ ↑
L C H
  • L — Lightness (0-100%)
  • C — Chroma (0-0.4, higher = more saturated)
  • H — Hue (0-360, color wheel degrees)