Hungry for shadcn/ui

Hungry is a shadcn/ui theme built around a green primary color (#96cc8a) with green accents (#8acc9f). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the green primary (#96cc8a) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#040703black
Foreground
#071604black
#f6faf5whitesmoke
Card
#f8fdf7mintcream
#040703black
Card foreground
#071604black
#f6faf5whitesmoke
Popover
#f8fdf7mintcream
#040703black
Popover foreground
#071604black
#f6faf5whitesmoke
Primary
#96cc8adarkseagreen
#96cc8adarkseagreen
Primary foreground
#0d190bblack
#0d190bblack
Secondary
#b7cc8atan
#b7cc8atan
Secondary foreground
#14190bblack
#14190bblack
Muted
#e1e6d6gainsboro
#242919black
Muted foreground
#484a45darkslategray
#b8bab5silver
Accent
#8acc9fdarkseagreen
#8acc9fdarkseagreen
Accent foreground
#0b190fblack
#0b190fblack
Destructive
#65200bmaroon
#dc4618chocolate
Destructive foreground
#f6beaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96cc8adarkseagreen
#96cc8adarkseagreen

Contrast

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

Light mode
Text on background18.10:1AAA
Text on card18.10:1AAA
Primary button9.70:1AAA
Secondary button10.21:1AAA
Muted text7.03:1AAA
Accent9.64:1AAA
Destructive7.29:1AAA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button9.70:1AAA
Secondary button10.21:1AAA
Muted text7.61:1AAA
Accent9.64:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.01 139.982);
  --foreground: oklch(0.18 0.043 138.795);
  --muted: oklch(0.916 0.022 121.163);
  --muted-foreground: oklch(0.405 0.007 121.063);
  --popover: oklch(0.989 0.01 139.982);
  --popover-foreground: oklch(0.18 0.043 138.795);
  --card: oklch(0.989 0.01 139.982);
  --card-foreground: oklch(0.18 0.043 138.795);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.79 0.106 139.909);
  --primary-foreground: oklch(0.197 0.032 139.917);
  --secondary: oklch(0.813 0.09 122.689);
  --secondary-foreground: oklch(0.203 0.027 123.09);
  --accent: oklch(0.788 0.093 153.958);
  --accent-foreground: oklch(0.196 0.027 153.364);
  --destructive: oklch(0.349 0.104 36.695);
  --destructive-foreground: oklch(0.846 0.07 37.598);
  --ring: oklch(0.79 0.106 139.909);
  --chart-1: oklch(0.79 0.106 139.909);
  --chart-2: oklch(0.813 0.09 122.689);
  --chart-3: oklch(0.788 0.093 153.958);
  --chart-4: oklch(0.83 0.082 122.463);
  --chart-5: oklch(0.795 0.114 139.91);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 138.75);
  --foreground: oklch(0.98 0.008 139.984);
  --muted: oklch(0.271 0.029 122.601);
  --muted-foreground: oklch(0.786 0.006 120.897);
  --popover: oklch(0.121 0.016 138.75);
  --popover-foreground: oklch(0.98 0.008 139.984);
  --card: oklch(0.121 0.016 138.75);
  --card-foreground: oklch(0.98 0.008 139.984);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.79 0.106 139.909);
  --primary-foreground: oklch(0.197 0.032 139.917);
  --secondary: oklch(0.813 0.09 122.689);
  --secondary-foreground: oklch(0.203 0.027 123.09);
  --accent: oklch(0.788 0.093 153.958);
  --accent-foreground: oklch(0.196 0.027 153.364);
  --destructive: oklch(0.604 0.194 35.96);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.79 0.106 139.909);
  --chart-1: oklch(0.79 0.106 139.909);
  --chart-2: oklch(0.813 0.09 122.689);
  --chart-3: oklch(0.788 0.093 153.958);
  --chart-4: oklch(0.83 0.082 122.463);
  --chart-5: oklch(0.795 0.114 139.91);
}