Agropec for shadcn/ui

Agropec is a shadcn/ui theme built around a green primary color (#89a64b) with green accents (#508345). The light mode uses a neutral background (#fdfdfc). Dark mode switches to a deep green primary (#353f21) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#000000black
Foreground
#060901black
#ffffffwhite
Card
#fdfdfcwhite
#000000black
Card foreground
#060901black
#ffffffwhite
Popover
#fdfdfcwhite
#000000black
Popover foreground
#060901black
#ffffffwhite
Primary
#89a64byellowgreen
#353f21darkslategray
Primary foreground
#ffffffwhite
#cfdab9lightgrey
Secondary
#3f3a21darkslategray
#3f3a21darkslategray
Secondary foreground
#dad5b9lightgrey
#dad5b9lightgrey
Muted
#d6cea7palegoldenrod
#363017darkslategray
Muted foreground
#4c4b48darkslategray
#b7b7b3silver
Accent
#508345darkolivegreen
#263f21darkslategray
Accent foreground
#ffffffwhite
#bedab9silver
Destructive
#c84531chocolate
#e12b0eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeefeblinen
#25281fdarkslategray
Input
#eeefeblinen
#25281fdarkslategray
Ring
#353f21darkslategray
#353f21darkslategray

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button2.75:1Fail
Secondary button7.66:1AAA
Muted text5.49:1AA
Accent4.47:1AA Large
Destructive4.81:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.57:1AAA
Secondary button7.66:1AAA
Muted text6.53:1AA
Accent7.61:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 121.526);
  --foreground: oklch(0.133 0.026 121.05);
  --muted: oklch(0.848 0.053 97.975);
  --muted-foreground: oklch(0.414 0.006 97.453);
  --popover: oklch(0.994 0.002 121.526);
  --popover-foreground: oklch(0.133 0.026 121.05);
  --card: oklch(0.994 0.002 121.526);
  --card-foreground: oklch(0.133 0.026 121.05);
  --border: oklch(0.951 0.006 121.601);
  --input: oklch(0.951 0.006 121.601);
  --primary: oklch(0.683 0.123 124.302);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.348 0.04 98.287);
  --secondary-foreground: oklch(0.869 0.038 97.787);
  --accent: oklch(0.559 0.108 140.344);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.571 0.17 31.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.05 123.996);
  --chart-1: oklch(0.352 0.05 123.996);
  --chart-2: oklch(0.348 0.04 98.287);
  --chart-3: oklch(0.34 0.059 140.339);
  --chart-4: oklch(0.384 0.045 98.291);
  --chart-5: oklch(0.356 0.054 124.217);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.309 0.041 98.282);
  --muted-foreground: oklch(0.777 0.005 97.349);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.272 0.017 122.53);
  --input: oklch(0.272 0.017 122.53);
  --primary: oklch(0.352 0.05 123.996);
  --primary-foreground: oklch(0.871 0.046 122.357);
  --secondary: oklch(0.348 0.04 98.287);
  --secondary-foreground: oklch(0.869 0.038 97.787);
  --accent: oklch(0.34 0.059 140.339);
  --accent-foreground: oklch(0.859 0.054 140.437);
  --destructive: oklch(0.588 0.219 31.354);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.05 123.996);
  --chart-1: oklch(0.352 0.05 123.996);
  --chart-2: oklch(0.348 0.04 98.287);
  --chart-3: oklch(0.34 0.059 140.339);
  --chart-4: oklch(0.384 0.045 98.291);
  --chart-5: oklch(0.356 0.054 124.217);
}