Scarecrow for shadcn/ui

Scarecrow is a shadcn/ui theme built around a near-white primary color (#fdfdfc) with near-white accents (#fdfcfd). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fdfdfc) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#131505black
#fdfdfcwhite
Card
#ffffffwhite
#030402black
Card foreground
#131505black
#fdfdfcwhite
Popover
#ffffffwhite
#030402black
Popover foreground
#131505black
#fdfdfcwhite
Primary
#fdfdfcwhite
#fdfdfcwhite
Primary foreground
#3b3f22darkslategray
#3b3f22darkslategray
Secondary
#fcfdfdwhite
#fcfdfdwhite
Secondary foreground
#223b3fdarkslategray
#223b3fdarkslategray
Muted
#f0f4f4whitesmoke
#0b0e0fblack
Muted foreground
#5f6b6ddimgray
#929ea0darkgray
Accent
#fdfcfdwhite
#fdfcfdwhite
Accent foreground
#814679dimgray
#814679dimgray
Destructive
#772d09saddlebrown
#ed5b12chocolate
Destructive foreground
#faceb8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfdfcwhite
#fdfdfcwhite

Contrast

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

Light mode
Text on background18.46:1AAA
Text on card18.46:1AAA
Primary button10.75:1AAA
Secondary button11.66:1AAA
Muted text4.96:1AA
Accent6.63:1AA
Destructive6.73:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button10.75:1AAA
Secondary button11.66:1AAA
Muted text7.02:1AAA
Accent6.63:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.187 0.03 115.29);
  --muted: oklch(0.964 0.004 207.916);
  --muted-foreground: oklch(0.519 0.015 207.843);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.187 0.03 115.29);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.187 0.03 115.29);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.994 0.002 112.582);
  --primary-foreground: oklch(0.356 0.046 115.008);
  --secondary: oklch(0.993 0.001 207.927);
  --secondary-foreground: oklch(0.334 0.032 208.129);
  --accent: oklch(0.992 0.002 329.713);
  --accent-foreground: oklch(0.484 0.108 332.183);
  --destructive: oklch(0.399 0.112 42.519);
  --destructive-foreground: oklch(0.883 0.058 48.043);
  --ring: oklch(0.994 0.002 112.582);
  --chart-1: oklch(0.994 0.002 112.582);
  --chart-2: oklch(0.993 0.001 207.927);
  --chart-3: oklch(0.992 0.002 329.713);
  --chart-4: oklch(1.014 0.003 27.947);
  --chart-5: oklch(0.994 0.002 112.586);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.01 113.326);
  --foreground: oklch(0.993 0.001 112.556);
  --muted: oklch(0.161 0.006 207.837);
  --muted-foreground: oklch(0.691 0.014 207.859);
  --popover: oklch(0.1 0.01 113.326);
  --popover-foreground: oklch(0.993 0.001 112.556);
  --card: oklch(0.1 0.01 113.326);
  --card-foreground: oklch(0.993 0.001 112.556);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.994 0.002 112.582);
  --primary-foreground: oklch(0.356 0.046 115.008);
  --secondary: oklch(0.993 0.001 207.927);
  --secondary-foreground: oklch(0.334 0.032 208.129);
  --accent: oklch(0.992 0.002 329.713);
  --accent-foreground: oklch(0.484 0.108 332.183);
  --destructive: oklch(0.655 0.194 41.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.002 112.582);
  --chart-1: oklch(0.994 0.002 112.582);
  --chart-2: oklch(0.993 0.001 207.927);
  --chart-3: oklch(0.992 0.002 329.713);
  --chart-4: oklch(1.014 0.003 27.947);
  --chart-5: oklch(0.994 0.002 112.586);
}