Harvest for shadcn/ui

Harvest is a shadcn/ui theme built around a muted deep teal primary color (#070d0d) with muted deep blue accents (#070a0d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#070d0d) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060e0eblack
Foreground
#031516black
#f7f8f8whitesmoke
Card
#ffffffwhite
#060e0eblack
Card foreground
#031516black
#f7f8f8whitesmoke
Popover
#ffffffwhite
#060e0eblack
Popover foreground
#031516black
#f7f8f8whitesmoke
Primary
#070d0dblack
#070d0dblack
Primary foreground
#89bbbedarkgray
#89bbbedarkgray
Secondary
#070d0ablack
#070d0ablack
Secondary foreground
#89bea6darkseagreen
#89bea6darkseagreen
Muted
#e3ede9lavender
#121c17black
Muted foreground
#49504ddarkslategray
#afb6b3darkgray
Accent
#070a0dblack
#070a0dblack
Accent foreground
#89a1bedarkgray
#89a1bedarkgray
Destructive
#913a08saddlebrown
#f36a1bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070d0dblack
#070d0dblack

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button9.24:1AAA
Secondary button9.30:1AAA
Muted text6.92:1AA
Accent7.47:1AAA
Destructive7.44:1AAA
Dark mode
Text on background18.34:1AAA
Text on card18.34:1AAA
Primary button9.24:1AAA
Secondary button9.30:1AAA
Muted text8.44:1AAA
Accent7.47:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.181 0.025 199.546);
  --muted: oklch(0.938 0.012 167.446);
  --muted-foreground: oklch(0.424 0.011 167.057);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.181 0.025 199.546);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.181 0.025 199.546);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.152 0.009 200.067);
  --primary-foreground: oklch(0.758 0.053 200.179);
  --secondary: oklch(0.152 0.011 166.572);
  --secondary-foreground: oklch(0.757 0.066 165.13);
  --accent: oklch(0.143 0.009 251.169);
  --accent-foreground: oklch(0.699 0.051 253.619);
  --destructive: oklch(0.463 0.13 43.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.009 200.067);
  --chart-1: oklch(0.152 0.009 200.067);
  --chart-2: oklch(0.152 0.011 166.572);
  --chart-3: oklch(0.143 0.009 251.169);
  --chart-4: oklch(0.193 0.018 164.913);
  --chart-5: oklch(0.153 0.01 199.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 199.837);
  --foreground: oklch(0.978 0.002 200.868);
  --muted: oklch(0.215 0.017 165.374);
  --muted-foreground: oklch(0.77 0.01 167.457);
  --popover: oklch(0.155 0.012 199.837);
  --popover-foreground: oklch(0.978 0.002 200.868);
  --card: oklch(0.155 0.012 199.837);
  --card-foreground: oklch(0.978 0.002 200.868);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.152 0.009 200.067);
  --primary-foreground: oklch(0.758 0.053 200.179);
  --secondary: oklch(0.152 0.011 166.572);
  --secondary-foreground: oklch(0.757 0.066 165.13);
  --accent: oklch(0.143 0.009 251.169);
  --accent-foreground: oklch(0.699 0.051 253.619);
  --destructive: oklch(0.684 0.187 44.754);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.152 0.009 200.067);
  --chart-1: oklch(0.152 0.009 200.067);
  --chart-2: oklch(0.152 0.011 166.572);
  --chart-3: oklch(0.143 0.009 251.169);
  --chart-4: oklch(0.193 0.018 164.913);
  --chart-5: oklch(0.153 0.01 199.995);
}