Speedy for shadcn/ui

Speedy is a shadcn/ui theme built around a vivid light orange primary color (#fbf1df) with muted light orange accents (#dcd6cb). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid light orange primary (#fbf1df) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#030302black
Foreground
#140f05black
#fdfdfcwhite
Card
#fdfdfcwhite
#030302black
Card foreground
#140f05black
#fdfdfcwhite
Popover
#fdfdfcwhite
#030302black
Popover foreground
#140f05black
#fdfdfcwhite
Primary
#fbf1dflinen
#fbf1dflinen
Primary foreground
#3c2807black
#3c2807black
Secondary
#dcd6cblightgrey
#272625darkslategray
Secondary foreground
#463e30darkslategray
#c1c0besilver
Muted
#eae1d2gainsboro
#2d2415black
Muted foreground
#4e473cdarkslategray
#c3bdb1silver
Accent
#dcd6cblightgrey
#272625darkslategray
Accent foreground
#463e30darkslategray
#c1c0besilver
Destructive
#dc1604red
#fa1e0ared
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbf1dflinen
#fbf1dflinen

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button12.51:1AAA
Secondary button7.28:1AAA
Muted text7.07:1AAA
Accent7.28:1AAA
Destructive5.04:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button12.51:1AAA
Secondary button8.26:1AAA
Muted text8.13:1AAA
Accent8.26:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 81.514);
  --foreground: oklch(0.171 0.021 82.41);
  --muted: oklch(0.913 0.023 81.485);
  --muted-foreground: oklch(0.402 0.02 81.377);
  --popover: oklch(0.993 0.002 81.514);
  --popover-foreground: oklch(0.171 0.021 82.41);
  --card: oklch(0.993 0.002 81.514);
  --card-foreground: oklch(0.171 0.021 82.41);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.961 0.026 81.478);
  --primary-foreground: oklch(0.294 0.055 76.797);
  --secondary: oklch(0.878 0.016 81.5);
  --secondary-foreground: oklch(0.367 0.026 81.225);
  --accent: oklch(0.878 0.016 81.5);
  --accent-foreground: oklch(0.367 0.026 81.225);
  --destructive: oklch(0.568 0.225 30.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.026 81.478);
  --chart-1: oklch(0.961 0.026 81.478);
  --chart-2: oklch(0.878 0.016 81.5);
  --chart-3: oklch(0.878 0.016 81.5);
  --chart-4: oklch(0.899 0.013 81.505);
  --chart-5: oklch(0.962 0.027 81.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 85.675);
  --foreground: oklch(0.993 0.001 81.514);
  --muted: oklch(0.268 0.03 80.607);
  --muted-foreground: oklch(0.799 0.017 81.493);
  --popover: oklch(0.095 0.007 85.675);
  --popover-foreground: oklch(0.993 0.001 81.514);
  --card: oklch(0.095 0.007 85.675);
  --card-foreground: oklch(0.993 0.001 81.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.961 0.026 81.478);
  --primary-foreground: oklch(0.294 0.055 76.797);
  --secondary: oklch(0.271 0.002 81.512);
  --secondary-foreground: oklch(0.807 0.002 81.514);
  --accent: oklch(0.271 0.002 81.512);
  --accent-foreground: oklch(0.807 0.002 81.514);
  --destructive: oklch(0.626 0.246 30.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.026 81.478);
  --chart-1: oklch(0.961 0.026 81.478);
  --chart-2: oklch(0.271 0.002 81.512);
  --chart-3: oklch(0.271 0.002 81.512);
  --chart-4: oklch(0.302 0.002 81.512);
  --chart-5: oklch(0.962 0.027 81.476);
}