Yummy for shadcn/ui

Yummy is a shadcn/ui theme built around a neutral gray primary color (#85837a) with neutral gray accents (#7a7c85). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the neutral gray primary (#85837a) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fdfcf7snow
#080702black
Foreground
#000000black
#fdfdfcwhite
Card
#fdfcf7snow
#080702black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fdfcf7snow
#080702black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#85837agray
#85837agray
Primary foreground
#000000black
#000000black
Secondary
#7a7c85gray
#7a7c85gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e6eblavender
#14151ablack
Muted foreground
#454a5edarkslategray
#a1a6badarkgray
Accent
#7a7c85gray
#7a7c85gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#773108saddlebrown
#f0752dtomato
Destructive foreground
#fad0b7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#85837agray
#85837agray

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button5.50:1AA
Secondary button4.14:1AA Large
Muted text7.03:1AAA
Accent4.14:1AA Large
Destructive6.62:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button5.50:1AA
Secondary button4.14:1AA Large
Muted text7.54:1AAA
Accent4.14:1AA Large
Destructive7.29:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 96.245);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.007 276.064);
  --muted-foreground: oklch(0.413 0.034 274.937);
  --popover: oklch(0.99 0.006 96.245);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.006 96.245);
  --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.608 0.013 96.415);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.588 0.013 275.873);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.013 275.873);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.405 0.11 44.982);
  --destructive-foreground: oklch(0.887 0.058 51.75);
  --ring: oklch(0.608 0.013 96.415);
  --chart-1: oklch(0.608 0.013 96.415);
  --chart-2: oklch(0.588 0.013 275.873);
  --chart-3: oklch(0.588 0.013 275.873);
  --chart-4: oklch(0.615 0.012 275.906);
  --chart-5: oklch(0.616 0.022 96.576);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.016 100.302);
  --foreground: oklch(0.994 0.002 96.189);
  --muted: oklch(0.196 0.011 275.389);
  --muted-foreground: oklch(0.727 0.029 275.604);
  --popover: oklch(0.127 0.016 100.302);
  --popover-foreground: oklch(0.994 0.002 96.189);
  --card: oklch(0.127 0.016 100.302);
  --card-foreground: oklch(0.994 0.002 96.189);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.608 0.013 96.415);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.588 0.013 275.873);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.588 0.013 275.873);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.696 0.172 46.704);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.608 0.013 96.415);
  --chart-1: oklch(0.608 0.013 96.415);
  --chart-2: oklch(0.588 0.013 275.873);
  --chart-3: oklch(0.588 0.013 275.873);
  --chart-4: oklch(0.615 0.012 275.906);
  --chart-5: oklch(0.616 0.022 96.576);
}