Appetizer for shadcn/ui

Appetizer is a shadcn/ui theme built around a light green primary color (#f8fcf3) with light green accents (#f4fcf3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f8fcf3) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#030401black
#ffffffwhite
Card
#fcfcfcsnow
#050703black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#050703black
Popover foreground
#000000black
#ffffffwhite
Primary
#f8fcf3whitesmoke
#f8fcf3whitesmoke
Primary foreground
#2e4314darkgreen
#2e4314darkgreen
Secondary
#fcfbf3floralwhite
#fcfbf3floralwhite
Secondary foreground
#434114darkolivegreen
#434114darkolivegreen
Muted
#eeedddbeige
#222111black
Muted foreground
#43433ddarkslategray
#c2c2bcsilver
Accent
#f4fcf3honeydew
#f4fcf3honeydew
Accent foreground
#164314darkgreen
#164314darkgreen
Destructive
#8b2804saddlebrown
#f94e10orangered
Destructive foreground
#fdd3c3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8fcf3whitesmoke
#f8fcf3whitesmoke

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.54:1AAA
Primary button10.44:1AAA
Secondary button10.09:1AAA
Muted text8.42:1AAA
Accent10.82:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.18:1AAA
Primary button10.44:1AAA
Secondary button10.09:1AAA
Muted text9.09:1AAA
Accent10.82:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.02 125.233);
  --muted: oklch(0.942 0.021 104.34);
  --muted-foreground: oklch(0.38 0.01 104.416);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.985 0.012 126.582);
  --primary-foreground: oklch(0.354 0.077 130.121);
  --secondary: oklch(0.987 0.011 104.153);
  --secondary-foreground: oklch(0.367 0.064 106.288);
  --accent: oklch(0.981 0.014 144.047);
  --accent-foreground: oklch(0.34 0.091 142.49);
  --destructive: oklch(0.428 0.14 36.983);
  --destructive-foreground: oklch(0.899 0.053 40.973);
  --ring: oklch(0.985 0.012 126.582);
  --chart-1: oklch(0.985 0.012 126.582);
  --chart-2: oklch(0.987 0.011 104.153);
  --chart-3: oklch(0.981 0.014 144.047);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.985 0.012 126.59);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 125.66);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.027 105.661);
  --muted-foreground: oklch(0.813 0.008 104.147);
  --popover: oklch(0.125 0.016 125.66);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.016 125.66);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.985 0.012 126.582);
  --primary-foreground: oklch(0.354 0.077 130.121);
  --secondary: oklch(0.987 0.011 104.153);
  --secondary-foreground: oklch(0.367 0.064 106.288);
  --accent: oklch(0.981 0.014 144.047);
  --accent-foreground: oklch(0.34 0.091 142.49);
  --destructive: oklch(0.659 0.216 36.759);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.012 126.582);
  --chart-1: oklch(0.985 0.012 126.582);
  --chart-2: oklch(0.987 0.011 104.153);
  --chart-3: oklch(0.981 0.014 144.047);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.985 0.012 126.59);
}