Harvester for shadcn/ui

Harvester is a shadcn/ui theme built around a muted deep green primary color (#2e4d3a) with muted deep teal accents (#2e4d49). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#2e4d3a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010402black
#f4faf7whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#f8fcfamintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#010402black
#f4faf7whitesmoke
Primary
#2e4d3adarkslategray
#2e4d3adarkslategray
Primary foreground
#cce0d4lightgrey
#cce0d4lightgrey
Secondary
#314d2edarkslategray
#314d2edarkslategray
Secondary foreground
#cee0cclightgrey
#cee0cclightgrey
Muted
#d0e4celightgrey
#1d311bdarkslategray
Muted foreground
#4e564edarkslategray
#aab1a9darkgray
Accent
#2e4d49darkslategray
#2e4d49darkslategray
Accent foreground
#cce0degainsboro
#cce0degainsboro
Destructive
#ba3408firebrick
#f66331tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e4d3adarkslategray
#2e4d3adarkslategray

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.54:1AAA
Primary button6.82:1AA
Secondary button6.83:1AA
Muted text5.65:1AA
Accent6.76:1AA
Destructive5.85:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.98:1AAA
Primary button6.82:1AA
Secondary button6.83:1AA
Muted text6.32:1AA
Accent6.76:1AA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.012 160.126);
  --muted: oklch(0.897 0.037 142.46);
  --muted-foreground: oklch(0.443 0.016 142.478);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.012 160.126);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.388 0.048 156.934);
  --primary-foreground: oklch(0.889 0.027 159.511);
  --secondary: oklch(0.387 0.061 141.99);
  --secondary-foreground: oklch(0.889 0.034 142.472);
  --accent: oklch(0.393 0.037 187.765);
  --accent-foreground: oklch(0.892 0.022 189.512);
  --destructive: oklch(0.526 0.177 35.76);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.388 0.048 156.934);
  --chart-1: oklch(0.388 0.048 156.934);
  --chart-2: oklch(0.387 0.061 141.99);
  --chart-3: oklch(0.393 0.037 187.765);
  --chart-4: oklch(0.419 0.067 141.98);
  --chart-5: oklch(0.392 0.054 156.54);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.008 160.049);
  --muted: oklch(0.29 0.047 141.969);
  --muted-foreground: oklch(0.754 0.014 142.551);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.008 160.049);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.005 160.112);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.388 0.048 156.934);
  --primary-foreground: oklch(0.889 0.027 159.511);
  --secondary: oklch(0.387 0.061 141.99);
  --secondary-foreground: oklch(0.889 0.034 142.472);
  --accent: oklch(0.393 0.037 187.765);
  --accent-foreground: oklch(0.892 0.022 189.512);
  --destructive: oklch(0.681 0.192 37.998);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.388 0.048 156.934);
  --chart-1: oklch(0.388 0.048 156.934);
  --chart-2: oklch(0.387 0.061 141.99);
  --chart-3: oklch(0.393 0.037 187.765);
  --chart-4: oklch(0.419 0.067 141.98);
  --chart-5: oklch(0.392 0.054 156.54);
}