Cultivated is a shadcn/ui theme built around a light green primary color (#e3edb6) with light green accents (#c8edb6). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the light green primary (#e3edb6) on a green-tinted background (#0d0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #0d0e06black |
| Foreground | #0b0d02black | #fdfdfcwhite |
| Card | #fbfbf8snow | #0d0e06black |
| Card foreground | #0b0d02black | #fdfdfcwhite |
| Popover | #fbfbf8snow | #0d0e06black |
| Popover foreground | #0b0d02black | #fdfdfcwhite |
| Primary | #e3edb6palegoldenrod | #e3edb6palegoldenrod |
| Primary foreground | #4f5a16darkolivegreen | #4f5a16darkolivegreen |
| Secondary | #eddab6wheat | #eddab6wheat |
| Secondary foreground | #5a4316darkolivegreen | #5a4316darkolivegreen |
| Muted | #ecebe9linen | #161513black |
| Muted foreground | #69604fdimgray | #b0a796darkgray |
| Accent | #c8edb6palegoldenrod | #c8edb6palegoldenrod |
| Accent foreground | #2d5a16darkolivegreen | #2d5a16darkolivegreen |
| Destructive | #711c05maroon | #eb3b0aorangered |
| Destructive foreground | #fcbdaclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3edb6palegoldenrod | #e3edb6palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 5.21:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 6.06:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Cultivated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 114.145);
--foreground: oklch(0.153 0.027 115.672);
--muted: oklch(0.941 0.004 84.561);
--muted-foreground: oklch(0.492 0.028 84.534);
--popover: oklch(0.988 0.004 114.145);
--popover-foreground: oklch(0.153 0.027 115.672);
--card: oklch(0.988 0.004 114.145);
--card-foreground: oklch(0.153 0.027 115.672);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.072 115.523);
--primary-foreground: oklch(0.443 0.09 118.496);
--secondary: oklch(0.895 0.052 84.53);
--secondary-foreground: oklch(0.399 0.068 81.669);
--accent: oklch(0.905 0.083 135.319);
--accent-foreground: oklch(0.419 0.109 137.133);
--destructive: oklch(0.365 0.122 35.124);
--destructive-foreground: oklch(0.851 0.077 36.023);
--ring: oklch(0.925 0.072 115.523);
--chart-1: oklch(0.925 0.072 115.523);
--chart-2: oklch(0.895 0.052 84.53);
--chart-3: oklch(0.905 0.083 135.319);
--chart-4: oklch(0.912 0.044 84.568);
--chart-5: oklch(0.928 0.076 115.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.017 115.614);
--foreground: oklch(0.994 0.002 114.109);
--muted: oklch(0.196 0.005 84.593);
--muted-foreground: oklch(0.732 0.026 84.59);
--popover: oklch(0.16 0.017 115.614);
--popover-foreground: oklch(0.994 0.002 114.109);
--card: oklch(0.16 0.017 115.614);
--card-foreground: oklch(0.994 0.002 114.109);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.072 115.523);
--primary-foreground: oklch(0.443 0.09 118.496);
--secondary: oklch(0.895 0.052 84.53);
--secondary-foreground: oklch(0.399 0.068 81.669);
--accent: oklch(0.905 0.083 135.319);
--accent-foreground: oklch(0.419 0.109 137.133);
--destructive: oklch(0.617 0.218 33.955);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.072 115.523);
--chart-1: oklch(0.925 0.072 115.523);
--chart-2: oklch(0.895 0.052 84.53);
--chart-3: oklch(0.905 0.083 135.319);
--chart-4: oklch(0.912 0.044 84.568);
--chart-5: oklch(0.928 0.076 115.587);
}