Cupboard for shadcn/ui

Cupboard is a shadcn/ui theme built around a yellow primary color (#866b32) with violet accents (#6b3286). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#866b32) on a yellow-tinted background (#0c0904).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0904black
Foreground
#090602black
#fcfbf8snow
Card
#fcfcfcsnow
#0f0c05black
Card foreground
#040301black
#fdfdfcwhite
Popover
#ffffffwhite
#0c0904black
Popover foreground
#090602black
#fcfbf8snow
Primary
#866b32sienna
#866b32sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#32866bseagreen
#32866bseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaf5f2whitesmoke
#0a1511black
Muted foreground
#3e4140darkslategray
#bec1c0silver
Accent
#6b3286rebeccapurple
#6b3286rebeccapurple
Accent foreground
#f7f0f9whitesmoke
#f7f0f9whitesmoke
Destructive
#7e2d02saddlebrown
#ec5504orangered
Destructive foreground
#feceb4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#866b32sienna
#866b32sienna

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.17:1AAA
Primary button5.03:1AA
Secondary button4.41:1AA Large
Muted text9.25:1AAA
Accent7.75:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.16:1AAA
Primary button5.03:1AA
Secondary button4.41:1AA Large
Muted text10.29:1AAA
Accent7.75:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.018 92.86);
  --muted: oklch(0.961 0.012 175.253);
  --muted-foreground: oklch(0.373 0.004 175.326);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.018 92.86);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.014 92.86);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.543 0.083 84.432);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.092 168.805);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.432 0.143 313.543);
  --accent-foreground: oklch(0.963 0.014 315.365);
  --destructive: oklch(0.41 0.121 42.427);
  --destructive-foreground: oklch(0.886 0.065 49.796);
  --ring: oklch(0.543 0.083 84.432);
  --chart-1: oklch(0.543 0.083 84.432);
  --chart-2: oklch(0.561 0.092 168.805);
  --chart-3: oklch(0.432 0.143 313.543);
  --chart-4: oklch(0.595 0.098 168.737);
  --chart-5: oklch(0.548 0.087 84.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 90.913);
  --foreground: oklch(0.987 0.003 86.02);
  --muted: oklch(0.182 0.017 172.533);
  --muted-foreground: oklch(0.807 0.003 175.506);
  --popover: oklch(0.141 0.015 90.913);
  --popover-foreground: oklch(0.987 0.003 86.02);
  --card: oklch(0.156 0.017 88.339);
  --card-foreground: oklch(0.993 0.002 86.013);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.543 0.083 84.432);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.092 168.805);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.432 0.143 313.543);
  --accent-foreground: oklch(0.963 0.014 315.365);
  --destructive: oklch(0.646 0.199 40.488);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.083 84.432);
  --chart-1: oklch(0.543 0.083 84.432);
  --chart-2: oklch(0.561 0.092 168.805);
  --chart-3: oklch(0.432 0.143 313.543);
  --chart-4: oklch(0.595 0.098 168.737);
  --chart-5: oklch(0.548 0.087 84.14);
}