Soy for shadcn/ui

Soy is a shadcn/ui theme built around a muted deep yellow primary color (#312f26) with muted light yellow accents (#dddcd4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#312f26) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#ffffffwhite
#080702black
Foreground
#040301black
#fbfaf9snow
Card
#fcfcfcsnow
#0c0a04black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#080702black
Popover foreground
#040301black
#fbfaf9snow
Primary
#312f26darkslategray
#312f26darkslategray
Primary foreground
#ccc9bdsilver
#ccc9bdsilver
Secondary
#e7e6e4gainsboro
#32312fdarkslategray
Secondary foreground
#504e49darkslategray
#cbcac8lightgrey
Muted
#ebe8dbantiquewhite
#242114black
Muted foreground
#5a5a58dimgray
#a7a6a5darkgray
Accent
#dddcd4gainsboro
#48463cdarkslategray
Accent foreground
#474438darkslategray
#dfddd8gainsboro
Destructive
#b41108firebrick
#f42015red
Destructive foreground
#fef1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#312f26darkslategray
#312f26darkslategray

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button8.11:1AAA
Secondary button6.66:1AA
Muted text5.61:1AA
Accent7.07:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.44:1AAA
Primary button8.11:1AAA
Secondary button7.91:1AAA
Muted text6.64:1AA
Accent6.97:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.012 99.118);
  --muted: oklch(0.929 0.017 95.243);
  --muted-foreground: oklch(0.467 0.002 95.093);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.012 99.118);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.303 0.016 95.56);
  --primary-foreground: oklch(0.835 0.017 95.264);
  --secondary: oklch(0.925 0.002 95.063);
  --secondary-foreground: oklch(0.425 0.008 95.25);
  --accent: oklch(0.892 0.01 95.165);
  --accent-foreground: oklch(0.387 0.02 95.561);
  --destructive: oklch(0.49 0.193 29.464);
  --destructive-foreground: oklch(0.969 0.014 21.08);
  --ring: oklch(0.303 0.016 95.56);
  --chart-1: oklch(0.303 0.016 95.56);
  --chart-2: oklch(0.925 0.002 95.063);
  --chart-3: oklch(0.892 0.01 95.165);
  --chart-4: oklch(0.948 0.002 95.053);
  --chart-5: oklch(0.307 0.019 95.638);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.015 99.182);
  --foreground: oklch(0.986 0.002 95.056);
  --muted: oklch(0.246 0.023 95.773);
  --muted-foreground: oklch(0.726 0.002 95.068);
  --popover: oklch(0.126 0.015 99.182);
  --popover-foreground: oklch(0.986 0.002 95.056);
  --card: oklch(0.145 0.017 98.71);
  --card-foreground: oklch(0.993 0.001 95.045);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.303 0.016 95.56);
  --primary-foreground: oklch(0.835 0.017 95.264);
  --secondary: oklch(0.314 0.004 95.186);
  --secondary-foreground: oklch(0.84 0.004 95.085);
  --accent: oklch(0.393 0.016 95.46);
  --accent-foreground: oklch(0.898 0.007 95.126);
  --destructive: oklch(0.617 0.24 29.375);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.303 0.016 95.56);
  --chart-1: oklch(0.303 0.016 95.56);
  --chart-2: oklch(0.314 0.004 95.186);
  --chart-3: oklch(0.393 0.016 95.46);
  --chart-4: oklch(0.345 0.005 95.191);
  --chart-5: oklch(0.307 0.019 95.638);
}