Warped for shadcn/ui

Warped is a shadcn/ui theme built around a teal primary color (#207979) with yellow accents (#797920). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the teal primary (#207979) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#030707black
Foreground
#041616black
#ffffffwhite
Card
#f3fcfcmintcream
#050b0bblack
Card foreground
#031212black
#ffffffwhite
Popover
#f7fdfdmintcream
#030707black
Popover foreground
#041616black
#ffffffwhite
Primary
#207979teal
#207979teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#792079purple
#792079purple
Secondary foreground
#f4d7f4lavender
#f4d7f4lavender
Muted
#f6eff6whitesmoke
#100910black
Muted foreground
#544054darkslategray
#bfabbfsilver
Accent
#797920olivedrab
#797920olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bf2c03firebrick
#fb410eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#207979teal
#207979teal

Contrast

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

Light mode
Text on background18.04:1AAA
Text on card18.32:1AAA
Primary button5.16:1AA
Secondary button6.91:1AA
Muted text8.28:1AAA
Accent4.60:1AA
Destructive5.88:1AA
Dark mode
Text on background20.22:1AAA
Text on card19.85:1AAA
Primary button5.16:1AA
Secondary button6.91:1AA
Muted text9.15:1AAA
Accent4.60:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 197.049);
  --foreground: oklch(0.184 0.026 195.158);
  --muted: oklch(0.959 0.013 325.674);
  --muted-foreground: oklch(0.4 0.043 326.352);
  --popover: oklch(0.989 0.007 197.049);
  --popover-foreground: oklch(0.184 0.026 195.158);
  --card: oklch(0.984 0.01 196.994);
  --card-foreground: oklch(0.166 0.023 195.193);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.526 0.08 194.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.161 327.966);
  --secondary-foreground: oklch(0.912 0.051 325.985);
  --accent: oklch(0.559 0.108 109.438);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.526 0.188 33.84);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.08 194.991);
  --chart-1: oklch(0.526 0.08 194.991);
  --chart-2: oklch(0.423 0.161 327.966);
  --chart-3: oklch(0.559 0.108 109.438);
  --chart-4: oklch(0.452 0.173 327.982);
  --chart-5: oklch(0.532 0.083 194.958);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 195.893);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.154 0.02 326.481);
  --muted-foreground: oklch(0.764 0.037 325.934);
  --popover: oklch(0.123 0.01 195.893);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.012 195.892);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.526 0.08 194.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.423 0.161 327.966);
  --secondary-foreground: oklch(0.912 0.051 325.985);
  --accent: oklch(0.559 0.108 109.438);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.228 34.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.08 194.991);
  --chart-1: oklch(0.526 0.08 194.991);
  --chart-2: oklch(0.423 0.161 327.966);
  --chart-3: oklch(0.559 0.108 109.438);
  --chart-4: oklch(0.452 0.173 327.982);
  --chart-5: oklch(0.532 0.083 194.958);
}