Colors
OKLCH-based color system with semantic tokens. Perceptually uniform colors that adapt to light and dark modes.
Why OKLCH
OKLCH is a perceptually uniform color space that makes it easy to create accessible color palettes with consistent perceived brightness.
Why not HSL? In HSL, colors with the same lightness value appear to have different perceived brightness. OKLCH's lightness is perceptually uniform—if two colors have the same L value, they look equally bright to human eyes.
Semantic Tokens
Use semantic names instead of raw colors. These adapt automatically to light and dark modes.
background
var(--background)Page backgrounds, card backgrounds
foreground
var(--foreground)Primary text, headings, icons
muted
var(--muted)Subtle backgrounds, secondary surfaces
muted-foreground
var(--muted-foreground)Secondary text, captions, descriptions
border
var(--border)Card borders, dividers, separators
input
var(--input)Input borders, form element borders
ring
var(--ring)Focus rings, selection indicators
Accent Colors
Indigo is our primary accent color. Use for links, buttons, active states, and brand highlights.
accent
var(--accent)#6366f1Primary accent, links, active states, brand color
accent-foreground
var(--accent-foreground)Text on accent backgrounds
accent-light
var(--accent-light)Glows, subtle highlights, hover backgrounds
Accent at Different Opacities
Use opacity variants for hover states and subtle backgrounds.
Feedback Colors
Semantic colors for errors, success, and warnings.
destructive
var(--destructive)Errors, warnings, delete actions
success
(Use Tailwind green-500)Success states, confirmations
warning
(Use Tailwind yellow-500)Warnings, caution states
Gradient Palette
Colors used for animated gradients and mesh backgrounds.
Gradient Start
Beginning of accent gradients
oklch(0.585 0.233 264)Gradient Mid
Middle of accent gradients
oklch(0.7 0.2 280)Mesh Blob 1
Hero background mesh
oklch(0.75 0.15 264)Mesh Blob 2
Hero background mesh
oklch(0.8 0.12 280)Mesh Blob 3
Hero background mesh
oklch(0.7 0.18 250)Mesh Blob 4
Hero background mesh
oklch(0.85 0.1 270)Gradient Text Effect
Usage with Tailwind
Common patterns for using colors in your components.
Pro tip: When creating opacity variants, use the OKLCH alpha syntax for consistency:
// Tailwind opacity classes bg-accent/20 // Uses Tailwind opacity border-accent/40 // Or in raw CSS oklch(0.585 0.233 264 / 0.2) // Native OKLCH alpha