Grocery for shadcn/ui

Grocery is a shadcn/ui theme built around a light teal primary color (#aeefdf) with light red accents (#efaebe). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#aeefdf) on a neutral background (#020806).

Color palette

TokenLightDark
Background
#fbfefdwhite
#020806black
Foreground
#030d0ablack
#ffffffwhite
Card
#fbfefdwhite
#020806black
Card foreground
#030d0ablack
#ffffffwhite
Popover
#fbfefdwhite
#020806black
Popover foreground
#030d0ablack
#ffffffwhite
Primary
#aeefdfpaleturquoise
#aeefdfpaleturquoise
Primary foreground
#115a48darkslategray
#115a48darkslategray
Secondary
#efaebelightpink
#efaebelightpink
Secondary foreground
#5a1123maroon
#5a1123maroon
Muted
#e7dfe1gainsboro
#20181ablack
Muted foreground
#4d4748darkslategray
#b8b2b4silver
Accent
#efaebelightpink
#efaebelightpink
Accent foreground
#5a1123maroon
#5a1123maroon
Destructive
#b01103firebrick
#fc4231tomato
Destructive foreground
#ffe8e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aeefdfpaleturquoise
#aeefdfpaleturquoise

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button6.30:1AA
Secondary button7.44:1AAA
Muted text6.95:1AA
Accent7.44:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button6.30:1AA
Secondary button7.44:1AAA
Muted text8.32:1AAA
Accent7.44:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 179.764);
  --foreground: oklch(0.145 0.019 179.024);
  --muted: oklch(0.911 0.008 0.123);
  --muted-foreground: oklch(0.404 0.008 0.44);
  --popover: oklch(0.995 0.004 179.764);
  --popover-foreground: oklch(0.145 0.019 179.024);
  --card: oklch(0.995 0.004 179.764);
  --card-foreground: oklch(0.145 0.019 179.024);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.905 0.07 177.427);
  --primary-foreground: oklch(0.419 0.075 171.496);
  --secondary: oklch(0.816 0.08 2.521);
  --secondary-foreground: oklch(0.313 0.104 11.401);
  --accent: oklch(0.816 0.08 2.521);
  --accent-foreground: oklch(0.313 0.104 11.401);
  --destructive: oklch(0.481 0.19 30.21);
  --destructive-foreground: oklch(0.948 0.025 23.855);
  --ring: oklch(0.905 0.07 177.427);
  --chart-1: oklch(0.905 0.07 177.427);
  --chart-2: oklch(0.816 0.08 2.521);
  --chart-3: oklch(0.816 0.08 2.521);
  --chart-4: oklch(0.844 0.066 2.003);
  --chart-5: oklch(0.907 0.073 177.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 179.912);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.012 1.371);
  --muted-foreground: oklch(0.769 0.007 0.123);
  --popover: oklch(0.124 0.014 179.912);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.014 179.912);
  --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.905 0.07 177.427);
  --primary-foreground: oklch(0.419 0.075 171.496);
  --secondary: oklch(0.816 0.08 2.521);
  --secondary-foreground: oklch(0.313 0.104 11.401);
  --accent: oklch(0.816 0.08 2.521);
  --accent-foreground: oklch(0.313 0.104 11.401);
  --destructive: oklch(0.655 0.224 29.617);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.07 177.427);
  --chart-1: oklch(0.905 0.07 177.427);
  --chart-2: oklch(0.816 0.08 2.521);
  --chart-3: oklch(0.816 0.08 2.521);
  --chart-4: oklch(0.844 0.066 2.003);
  --chart-5: oklch(0.907 0.073 177.323);
}