Vitesse Light for shadcn/ui

Vitesse Light is a shadcn/ui theme built around a neutral gray primary color (#3a3b35) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#3a3b35) on a neutral background (#ffffff).

Color palette

TokenLightDark
Background
#ffffffwhite
#ffffffwhite
Foreground
#3a3b35darkslategray
#3a3b35darkslategray
Card
#fafafasnow
#fafafasnow
Card foreground
#2d2e29darkslategray
#2d2e29darkslategray
Popover
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Popover foreground
#20201dblack
#20201dblack
Primary
#3a3b35darkslategray
#3a3b35darkslategray
Primary foreground
#d3d3cflightgrey
#d3d3cflightgrey
Secondary
#bfbfbfsilver
#bfbfbfsilver
Secondary foreground
#262626darkslategray
#262626darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d9d9d9gainsboro
#d9d9d9gainsboro
Accent foreground
#404040darkslategray
#404040darkslategray
Destructive
#641307maroon
#641307maroon
Destructive foreground
#f9b0a4lightpink
#f9b0a4lightpink
Border
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Input
#ebebeblinen
#ebebeblinen
Ring
#3a3b35darkslategray
#3a3b35darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background11.30:1AAA
Text on card13.10:1AAA
Primary button7.53:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive7.16:1AAA
Dark mode
Text on background11.30:1AAA
Text on card13.10:1AAA
Primary button7.53:1AAA
Secondary button8.25:1AAA
Muted text7.22:1AAA
Accent7.32:1AAA
Destructive7.16:1AAA

CSS variables

Paste this into your globals.css to use Vitesse Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.349 0.01 114.576);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.242 0.006 114.506);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.297 0.008 114.549);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.349 0.01 114.576);
  --primary-foreground: oklch(0.866 0.006 114.201);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.331 0.116 31.75);
  --destructive-foreground: oklch(0.822 0.088 28.85);
  --ring: oklch(0.349 0.01 114.576);
  --chart-1: oklch(0.349 0.01 114.576);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.354 0.015 114.864);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.349 0.01 114.576);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.977 0 180);
  --popover-foreground: oklch(0.242 0.006 114.506);
  --card: oklch(0.985 0 180);
  --card-foreground: oklch(0.297 0.008 114.549);
  --border: oklch(0.962 0 180);
  --input: oklch(0.939 0 180);
  --primary: oklch(0.349 0.01 114.576);
  --primary-foreground: oklch(0.866 0.006 114.201);
  --secondary: oklch(0.805 0 169.695);
  --secondary-foreground: oklch(0.27 0 180);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.331 0.116 31.75);
  --destructive-foreground: oklch(0.822 0.088 28.85);
  --ring: oklch(0.349 0.01 114.576);
  --chart-1: oklch(0.349 0.01 114.576);
  --chart-2: oklch(0.805 0 169.695);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.829 0 180);
  --chart-5: oklch(0.354 0.015 114.864);
}