Cultivated is a shadcn/ui theme built around a vivid blue primary color (#1e47eb) with vivid green accents (#47eb1e). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid blue primary (#1e47eb) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020308black |
| Foreground | #030717black | #fcfcfdwhite |
| Card | #fcfcfdwhite | #020308black |
| Card foreground | #030717black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #020308black |
| Popover foreground | #030717black | #fcfcfdwhite |
| Primary | #1e47ebroyalblue | #1e47ebroyalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eb1e47crimson | #eb1e47crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e6d5d9gainsboro | #2a191cblack |
| Muted foreground | #504e4fdarkslategray | #b1afafdarkgray |
| Accent | #47eb1elimegreen | #47eb1elimegreen |
| Accent foreground | #0f3805darkgreen | #0f3805darkgreen |
| Destructive | #d21904firebrick | #f51d05red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1e47ebroyalblue | #1e47ebroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 4.35:1 | AA Large |
| Muted text | 5.86:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 5.41:1 | AA |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 4.35:1 | AA Large |
| Muted text | 7.70:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Cultivated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 275.014);
--foreground: oklch(0.133 0.037 265.887);
--muted: oklch(0.889 0.02 3.775);
--muted-foreground: oklch(0.426 0.002 3.32);
--popover: oklch(0.991 0.002 275.014);
--popover-foreground: oklch(0.133 0.037 265.887);
--card: oklch(0.991 0.002 275.014);
--card-foreground: oklch(0.133 0.037 265.887);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.495 0.248 265.567);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.23 18.931);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.824 0.262 140.784);
--accent-foreground: oklch(0.301 0.09 140.119);
--destructive: oklch(0.55 0.215 30.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.495 0.248 265.567);
--chart-1: oklch(0.495 0.248 265.567);
--chart-2: oklch(0.605 0.23 18.931);
--chart-3: oklch(0.824 0.262 140.784);
--chart-4: oklch(0.616 0.223 16.906);
--chart-5: oklch(0.495 0.255 265.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.017 267.869);
--foreground: oklch(0.991 0.001 275.017);
--muted: oklch(0.235 0.028 6.358);
--muted-foreground: oklch(0.756 0.002 3.25);
--popover: oklch(0.102 0.017 267.869);
--popover-foreground: oklch(0.991 0.001 275.017);
--card: oklch(0.102 0.017 267.869);
--card-foreground: oklch(0.991 0.001 275.017);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.495 0.248 265.567);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.23 18.931);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.824 0.262 140.784);
--accent-foreground: oklch(0.301 0.09 140.119);
--destructive: oklch(0.617 0.243 30.291);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.495 0.248 265.567);
--chart-1: oklch(0.495 0.248 265.567);
--chart-2: oklch(0.605 0.23 18.931);
--chart-3: oklch(0.824 0.262 140.784);
--chart-4: oklch(0.616 0.223 16.906);
--chart-5: oklch(0.495 0.255 265.308);
}