Harvest for shadcn/ui

Harvest is a shadcn/ui theme built around a vivid yellow primary color (#c29f05) with vivid purple accents (#9f05c2). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the vivid yellow primary (#c29f05) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fbfbf8snow
#0a0905black
Foreground
#0d0b02black
#fcfbf8snow
Card
#faf9f5whitesmoke
#0d0c07black
Card foreground
#090801black
#fdfdfbsnow
Popover
#fbfbf8snow
#0a0905black
Popover foreground
#0d0b02black
#fcfbf8snow
Primary
#c29f05darkgoldenrod
#c29f05darkgoldenrod
Primary foreground
#000000black
#000000black
Secondary
#05c29flightseagreen
#05c29flightseagreen
Secondary foreground
#000000black
#000000black
Muted
#dbebe8gainsboro
#142421black
Muted foreground
#4b4e4ddarkslategray
#b1b4b3darkgray
Accent
#9f05c2darkviolet
#9f05c2darkviolet
Accent foreground
#fefaffwhite
#fefaffwhite
Destructive
#ac3d11brown
#e35116chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c29f05darkgoldenrod
#c29f05darkgoldenrod

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button8.27:1AAA
Secondary button9.21:1AAA
Muted text6.84:1AA
Accent6.19:1AA
Destructive6.14:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.20:1AAA
Primary button8.27:1AAA
Secondary button9.21:1AAA
Muted text7.67:1AAA
Accent6.19:1AA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 96.208);
  --foreground: oklch(0.15 0.024 100.35);
  --muted: oklch(0.928 0.018 183.778);
  --muted-foreground: oklch(0.421 0.004 184.051);
  --popover: oklch(0.987 0.003 96.208);
  --popover-foreground: oklch(0.15 0.024 100.35);
  --card: oklch(0.981 0.005 96.23);
  --card-foreground: oklch(0.13 0.021 101.326);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.714 0.145 93.096);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.726 0.138 173.662);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.519 0.25 317.895);
  --accent-foreground: oklch(0.99 0.008 319.998);
  --destructive: oklch(0.511 0.154 38.911);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.714 0.145 93.096);
  --chart-1: oklch(0.714 0.145 93.096);
  --chart-2: oklch(0.726 0.138 173.662);
  --chart-3: oklch(0.519 0.25 317.895);
  --chart-4: oklch(0.767 0.146 173.579);
  --chart-5: oklch(0.721 0.147 92.825);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.01 98.55);
  --foreground: oklch(0.988 0.004 96.219);
  --muted: oklch(0.246 0.023 181.427);
  --muted-foreground: oklch(0.767 0.004 184.189);
  --popover: oklch(0.14 0.01 98.55);
  --popover-foreground: oklch(0.988 0.004 96.219);
  --card: oklch(0.154 0.011 97.457);
  --card-foreground: oklch(0.994 0.002 96.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.714 0.145 93.096);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.726 0.138 173.662);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.519 0.25 317.895);
  --accent-foreground: oklch(0.99 0.008 319.998);
  --destructive: oklch(0.627 0.193 38.564);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.714 0.145 93.096);
  --chart-1: oklch(0.714 0.145 93.096);
  --chart-2: oklch(0.726 0.138 173.662);
  --chart-3: oklch(0.519 0.25 317.895);
  --chart-4: oklch(0.767 0.146 173.579);
  --chart-5: oklch(0.721 0.147 92.825);
}