Cultivated is a shadcn/ui theme built around a purple primary color (#e75ac4) with red accents (#e75a7d). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#e75ac4) on a purple-tinted background (#0b0409).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b0409black |
| Foreground | #10040dblack | #fcf8fbsnow |
| Card | #fdf7fbsnow | #0f060dblack |
| Card foreground | #0c030ablack | #fdfbfdsnow |
| Popover | #fdf7fbsnow | #0f060dblack |
| Popover foreground | #0c030ablack | #fdfbfdsnow |
| Primary | #e75ac4orchid | #e75ac4orchid |
| Primary foreground | #0d020bblack | #0d020bblack |
| Secondary | #c45ae7mediumorchid | #c45ae7mediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #e0d9e2gainsboro | #231d26black |
| Muted foreground | #57475cdimgray | #b3a3b8darkgray |
| Accent | #e75a7dpalevioletred | #e75a7dpalevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #c25414chocolate | #ec8346coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e75ac4orchid | #e75ac4orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 5.96:1 | AA |
| Muted text | 6.18:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 4.59:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 5.96:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 7.88:1 | AAA |
Paste this into your globals.css to use Cultivated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.952);
--foreground: oklch(0.136 0.033 336.261);
--muted: oklch(0.894 0.015 317.736);
--muted-foreground: oklch(0.422 0.04 317.605);
--popover: oklch(0.982 0.009 334.029);
--popover-foreground: oklch(0.122 0.029 335.093);
--card: oklch(0.982 0.009 334.029);
--card-foreground: oklch(0.122 0.029 335.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.684 0.209 338.738);
--primary-foreground: oklch(0.12 0.036 335.577);
--secondary: oklch(0.656 0.219 316.756);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.177 7.993);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.578 0.157 44.896);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.684 0.209 338.738);
--chart-1: oklch(0.684 0.209 338.738);
--chart-2: oklch(0.656 0.219 316.756);
--chart-3: oklch(0.66 0.177 7.993);
--chart-4: oklch(0.679 0.204 316.965);
--chart-5: oklch(0.686 0.216 338.912);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.021 334.603);
--foreground: oklch(0.983 0.006 333.976);
--muted: oklch(0.241 0.02 317.624);
--muted-foreground: oklch(0.735 0.035 317.685);
--popover: oklch(0.138 0.024 335.722);
--popover-foreground: oklch(0.991 0.003 333.926);
--card: oklch(0.138 0.024 335.722);
--card-foreground: oklch(0.991 0.003 333.926);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.684 0.209 338.738);
--primary-foreground: oklch(0.12 0.036 335.577);
--secondary: oklch(0.656 0.219 316.756);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.177 7.993);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.714 0.149 48.715);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.684 0.209 338.738);
--chart-1: oklch(0.684 0.209 338.738);
--chart-2: oklch(0.656 0.219 316.756);
--chart-3: oklch(0.66 0.177 7.993);
--chart-4: oklch(0.679 0.204 316.965);
--chart-5: oklch(0.686 0.216 338.912);
}