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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 2.75:1 | Fail |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 4.47:1 | AA Large |
| Destructive | 4.81:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.60:1 | AA |
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);
}