Hungry for shadcn/ui

Hungry is a shadcn/ui theme built around a muted deep violet primary color (#423947) with muted deep green accents (#3e4739). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#423947) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#423947darkslategray
#423947darkslategray
Primary foreground
#dad5ddgainsboro
#dad5ddgainsboro
Secondary
#3e4739darkslategray
#3e4739darkslategray
Secondary foreground
#d7ddd5gainsboro
#d7ddd5gainsboro
Muted
#e6f0e0beige
#141f0fblack
Muted foreground
#5b5e5adimgray
#a3a5a1darkgray
Accent
#3e4739darkslategray
#3e4739darkslategray
Accent foreground
#d7ddd5gainsboro
#d7ddd5gainsboro
Destructive
#cf5a17chocolate
#d35c17chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#423947darkslategray
#423947darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.64:1AAA
Secondary button7.04:1AAA
Muted text5.61:1AA
Accent7.04:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.64:1AAA
Secondary button7.04:1AAA
Muted text6.84:1AA
Accent7.04:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.025 134.368);
  --muted-foreground: oklch(0.477 0.007 134.296);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.359 0.027 313.811);
  --primary-foreground: oklch(0.878 0.013 314.139);
  --secondary: oklch(0.384 0.026 134.619);
  --secondary-foreground: oklch(0.891 0.013 134.3);
  --accent: oklch(0.384 0.026 134.619);
  --accent-foreground: oklch(0.891 0.013 134.3);
  --destructive: oklch(0.607 0.164 44.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.027 313.811);
  --chart-1: oklch(0.359 0.027 313.811);
  --chart-2: oklch(0.384 0.026 134.619);
  --chart-3: oklch(0.384 0.026 134.619);
  --chart-4: oklch(0.414 0.029 134.627);
  --chart-5: oklch(0.356 0.034 313.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 314.206);
  --muted: oklch(0.224 0.034 135.247);
  --muted-foreground: oklch(0.719 0.006 134.266);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 314.206);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 314.206);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.359 0.027 313.811);
  --primary-foreground: oklch(0.878 0.013 314.139);
  --secondary: oklch(0.384 0.026 134.619);
  --secondary-foreground: oklch(0.891 0.013 134.3);
  --accent: oklch(0.384 0.026 134.619);
  --accent-foreground: oklch(0.891 0.013 134.3);
  --destructive: oklch(0.617 0.167 44.929);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.359 0.027 313.811);
  --chart-1: oklch(0.359 0.027 313.811);
  --chart-2: oklch(0.384 0.026 134.619);
  --chart-3: oklch(0.384 0.026 134.619);
  --chart-4: oklch(0.414 0.029 134.627);
  --chart-5: oklch(0.356 0.034 313.693);
}