Yummy for shadcn/ui

Yummy is a shadcn/ui theme built around a light yellow primary color (#faf5eb) with light green accents (#f6faeb). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the light yellow primary (#faf5eb) on a yellow-tinted background (#0e0c06).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0e0c06black
Foreground
#110d04black
#fbfaf9snow
Card
#fcfaf2floralwhite
#120f08black
Card foreground
#0c0a03black
#fdfdfcwhite
Popover
#fcfaf2floralwhite
#120f08black
Popover foreground
#0c0a03black
#fdfdfcwhite
Primary
#faf5eboldlace
#faf5eboldlace
Primary foreground
#3c3010darkolivegreen
#3c3010darkolivegreen
Secondary
#faeeeblinen
#faeeeblinen
Secondary foreground
#8c3c26saddlebrown
#8c3c26saddlebrown
Muted
#ded6d3gainsboro
#2c2321darkslategray
Muted foreground
#463c39darkslategray
#c6bcb9silver
Accent
#f6faebhoneydew
#f6faebhoneydew
Accent foreground
#333c10darkolivegreen
#333c10darkolivegreen
Destructive
#ca4f0cchocolate
#f2671cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf5eboldlace
#faf5eboldlace

Contrast

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

Light mode
Text on background18.80:1AAA
Text on card18.91:1AAA
Primary button11.93:1AAA
Secondary button6.62:1AA
Muted text7.44:1AAA
Accent11.00:1AAA
Destructive4.53:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.80:1AAA
Primary button11.93:1AAA
Secondary button6.62:1AA
Muted text8.24:1AAA
Accent11.00:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 88.834);
  --foreground: oklch(0.16 0.021 91.511);
  --muted: oklch(0.881 0.01 35.977);
  --muted-foreground: oklch(0.366 0.015 35.944);
  --popover: oklch(0.984 0.01 88.855);
  --popover-foreground: oklch(0.144 0.019 93.835);
  --card: oklch(0.984 0.01 88.855);
  --card-foreground: oklch(0.144 0.019 93.835);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.972 0.014 88.882);
  --primary-foreground: oklch(0.314 0.05 87.579);
  --secondary: oklch(0.958 0.013 35.971);
  --secondary-foreground: oklch(0.46 0.114 36.344);
  --accent: oklch(0.977 0.019 116.691);
  --accent-foreground: oklch(0.337 0.066 120.463);
  --destructive: oklch(0.584 0.171 42.142);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.014 88.882);
  --chart-1: oklch(0.972 0.014 88.882);
  --chart-2: oklch(0.958 0.013 35.971);
  --chart-3: oklch(0.977 0.019 116.691);
  --chart-4: oklch(0.983 0.005 35.994);
  --chart-5: oklch(0.972 0.015 88.886);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.013 90.543);
  --foreground: oklch(0.986 0.001 88.8);
  --muted: oklch(0.266 0.014 35.948);
  --muted-foreground: oklch(0.801 0.012 35.968);
  --popover: oklch(0.169 0.015 89.376);
  --popover-foreground: oklch(0.993 0.001 88.795);
  --card: oklch(0.169 0.015 89.376);
  --card-foreground: oklch(0.993 0.001 88.795);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.972 0.014 88.882);
  --primary-foreground: oklch(0.314 0.05 87.579);
  --secondary: oklch(0.958 0.013 35.971);
  --secondary-foreground: oklch(0.46 0.114 36.344);
  --accent: oklch(0.977 0.019 116.691);
  --accent-foreground: oklch(0.337 0.066 120.463);
  --destructive: oklch(0.678 0.188 43.592);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.972 0.014 88.882);
  --chart-1: oklch(0.972 0.014 88.882);
  --chart-2: oklch(0.958 0.013 35.971);
  --chart-3: oklch(0.977 0.019 116.691);
  --chart-4: oklch(0.983 0.005 35.994);
  --chart-5: oklch(0.972 0.015 88.886);
}