Skip to content

Design System Overview

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

Primitives

Raw values (grayscale, brand, status color scales) in src/styles/tokens/primitives.css.

Semantic Tokens

Intent-based tokens (background, foreground, border) defined per-theme in src/styles/themes/.

Themes

Swap themes by changing one import in colors.css. Ships with default and midnight.

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)