Prairie for shadcn/ui

Prairie is a shadcn/ui theme built around a vivid light purple primary color (#f6bbea) with vivid light cyan accents (#bbeaf6). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#f6bbea) on a purple-tinted background (#0c030a).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0c030ablack
Foreground
#0d020bblack
#faf9fasnow
Card
#fbf4f9lavenderblush
#10040eblack
Card foreground
#090107black
#fdfcfdwhite
Popover
#fcf8fbsnow
#0c030ablack
Popover foreground
#0d020bblack
#faf9fasnow
Primary
#f6bbeapink
#f6bbeapink
Primary foreground
#710f5dpurple
#710f5dpurple
Secondary
#eaf6bbpalegoldenrod
#eaf6bbpalegoldenrod
Secondary foreground
#131703black
#131703black
Muted
#dbdcd5gainsboro
#282a23darkslategray
Muted foreground
#60654edimgray
#adb19adarkgray
Accent
#bbeaf6paleturquoise
#bbeaf6paleturquoise
Accent foreground
#031317black
#031317black
Destructive
#cf4007chocolate
#f86930tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6bbeapink
#f6bbeapink

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.02:1AAA
Primary button6.87:1AA
Secondary button16.01:1AAA
Muted text4.38:1AA Large
Accent14.66:1AAA
Destructive4.79:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.58:1AAA
Primary button6.87:1AA
Secondary button16.01:1AAA
Muted text6.60:1AA
Accent14.66:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 332.111);
  --foreground: oklch(0.121 0.036 333.822);
  --muted: oklch(0.892 0.009 115.772);
  --muted-foreground: oklch(0.495 0.036 116.916);
  --popover: oklch(0.982 0.007 332.111);
  --popover-foreground: oklch(0.121 0.036 333.822);
  --card: oklch(0.974 0.011 332.166);
  --card-foreground: oklch(0.105 0.031 333.211);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.86 0.091 333.49);
  --primary-foreground: oklch(0.379 0.153 338.285);
  --secondary: oklch(0.951 0.077 117.079);
  --secondary-foreground: oklch(0.192 0.038 118.691);
  --accent: oklch(0.909 0.051 214.664);
  --accent-foreground: oklch(0.172 0.025 214.51);
  --destructive: oklch(0.574 0.188 37.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.091 333.49);
  --chart-1: oklch(0.86 0.091 333.49);
  --chart-2: oklch(0.951 0.077 117.079);
  --chart-3: oklch(0.909 0.051 214.664);
  --chart-4: oklch(0.96 0.062 116.768);
  --chart-5: oklch(0.86 0.094 333.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.027 333.241);
  --foreground: oklch(0.984 0.002 332.029);
  --muted: oklch(0.28 0.012 116.393);
  --muted-foreground: oklch(0.751 0.033 116.378);
  --popover: oklch(0.123 0.027 333.241);
  --popover-foreground: oklch(0.984 0.002 332.029);
  --card: oklch(0.137 0.031 334.148);
  --card-foreground: oklch(0.992 0.001 332.017);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.86 0.091 333.49);
  --primary-foreground: oklch(0.379 0.153 338.285);
  --secondary: oklch(0.951 0.077 117.079);
  --secondary-foreground: oklch(0.192 0.038 118.691);
  --accent: oklch(0.909 0.051 214.664);
  --accent-foreground: oklch(0.172 0.025 214.51);
  --destructive: oklch(0.69 0.188 40.206);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.86 0.091 333.49);
  --chart-1: oklch(0.86 0.091 333.49);
  --chart-2: oklch(0.951 0.077 117.079);
  --chart-3: oklch(0.909 0.051 214.664);
  --chart-4: oklch(0.96 0.062 116.768);
  --chart-5: oklch(0.86 0.094 333.546);
}