Supermarket for shadcn/ui

Supermarket is a shadcn/ui theme built around a yellow primary color (#c5c67b) with purple accents (#c67bc5). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the yellow primary (#c5c67b) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fdfdf7snow
#040401black
Foreground
#171703black
#f9f9f6whitesmoke
Card
#fdfdf7snow
#040401black
Card foreground
#171703black
#f9f9f6whitesmoke
Popover
#fdfdf7snow
#040401black
Popover foreground
#171703black
#f9f9f6whitesmoke
Primary
#c5c67bdarkkhaki
#c5c67bdarkkhaki
Primary foreground
#0b0b05black
#0b0b05black
Secondary
#7bc5c6mediumaquamarine
#7bc5c6mediumaquamarine
Secondary foreground
#050b0bblack
#050b0bblack
Muted
#dff1f1lavender
#0e2020black
Muted foreground
#626464dimgray
#9b9d9ddarkgray
Accent
#c67bc5orchid
#c67bc5orchid
Accent foreground
#0b050bblack
#0b050bblack
Destructive
#812103maroon
#e53a06orangered
Destructive foreground
#fdc9b9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5c67bdarkkhaki
#c5c67bdarkkhaki

Contrast

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

Light mode
Text on background17.67:1AAA
Text on card17.67:1AAA
Primary button11.06:1AAA
Secondary button10.06:1AAA
Muted text5.09:1AA
Accent6.77:1AA
Destructive6.60:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button11.06:1AAA
Secondary button10.06:1AAA
Muted text6.19:1AA
Accent6.77:1AA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 107.3);
  --foreground: oklch(0.198 0.038 110.205);
  --muted: oklch(0.945 0.019 198.065);
  --muted-foreground: oklch(0.503 0.002 198.289);
  --popover: oklch(0.991 0.007 107.3);
  --popover-foreground: oklch(0.198 0.038 110.205);
  --card: oklch(0.991 0.007 107.3);
  --card-foreground: oklch(0.198 0.038 110.205);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.81 0.097 109.214);
  --primary-foreground: oklch(0.145 0.015 108.787);
  --secondary: oklch(0.776 0.074 197.117);
  --secondary-foreground: oklch(0.14 0.011 197.042);
  --accent: oklch(0.688 0.135 327.496);
  --accent-foreground: oklch(0.127 0.02 327.155);
  --destructive: oklch(0.402 0.136 35.497);
  --destructive-foreground: oklch(0.878 0.063 37.593);
  --ring: oklch(0.81 0.097 109.214);
  --chart-1: oklch(0.81 0.097 109.214);
  --chart-2: oklch(0.776 0.074 197.117);
  --chart-3: oklch(0.688 0.135 327.496);
  --chart-4: oklch(0.794 0.069 197.212);
  --chart-5: oklch(0.817 0.104 109.319);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.015 109.358);
  --foreground: oklch(0.981 0.004 107.237);
  --muted: oklch(0.227 0.024 197.015);
  --muted-foreground: oklch(0.693 0.002 198.313);
  --popover: oklch(0.105 0.015 109.358);
  --popover-foreground: oklch(0.981 0.004 107.237);
  --card: oklch(0.105 0.015 109.358);
  --card-foreground: oklch(0.981 0.004 107.237);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.81 0.097 109.214);
  --primary-foreground: oklch(0.145 0.015 108.787);
  --secondary: oklch(0.776 0.074 197.117);
  --secondary-foreground: oklch(0.14 0.011 197.042);
  --accent: oklch(0.688 0.135 327.496);
  --accent-foreground: oklch(0.127 0.02 327.155);
  --destructive: oklch(0.606 0.213 34.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.81 0.097 109.214);
  --chart-1: oklch(0.81 0.097 109.214);
  --chart-2: oklch(0.776 0.074 197.117);
  --chart-3: oklch(0.688 0.135 327.496);
  --chart-4: oklch(0.794 0.069 197.212);
  --chart-5: oklch(0.817 0.104 109.319);
}