Chive is a shadcn/ui theme built around a muted light red primary color (#cfbeba) with muted light indigo accents (#bebacf). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted light red primary (#cfbeba) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #030202black |
| Foreground | #140906black | #fdfcfcsnow |
| Card | #fefbfbsnow | #030202black |
| Card foreground | #140906black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #030202black |
| Popover foreground | #140906black | #fdfcfcsnow |
| Primary | #cfbebasilver | #cfbebasilver |
| Primary foreground | #332724darkslategray | #332724darkslategray |
| Secondary | #bacfbesilver | #bacfbesilver |
| Secondary foreground | #243327darkslategray | #243327darkslategray |
| Muted | #e1eae3gainsboro | #151e17black |
| Muted foreground | #404541darkslategray | #babfbbsilver |
| Accent | #bebacfsilver | #bebacfsilver |
| Accent foreground | #272433darkslategray | #272433darkslategray |
| Destructive | #7c1009maroon | #f03a2dcrimson |
| Destructive foreground | #fac0bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cfbebasilver | #cfbebasilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 9.13:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Chive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 34.312);
--foreground: oklch(0.153 0.021 37.428);
--muted: oklch(0.929 0.015 151.768);
--muted-foreground: oklch(0.384 0.01 151.611);
--popover: oklch(0.991 0.003 34.312);
--popover-foreground: oklch(0.153 0.021 37.428);
--card: oklch(0.991 0.003 34.312);
--card-foreground: oklch(0.153 0.021 37.428);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.02 34.298);
--primary-foreground: oklch(0.285 0.02 34.393);
--secondary: oklch(0.834 0.033 151.405);
--secondary-foreground: oklch(0.303 0.03 150.376);
--accent: oklch(0.798 0.03 294.887);
--accent-foreground: oklch(0.269 0.029 293.529);
--destructive: oklch(0.377 0.142 29.619);
--destructive-foreground: oklch(0.86 0.067 23.251);
--ring: oklch(0.814 0.02 34.298);
--chart-1: oklch(0.814 0.02 34.298);
--chart-2: oklch(0.834 0.033 151.405);
--chart-3: oklch(0.798 0.03 294.887);
--chart-4: oklch(0.856 0.028 151.502);
--chart-5: oklch(0.813 0.024 34.3);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.006 37.541);
--foreground: oklch(0.992 0.001 34.315);
--muted: oklch(0.224 0.02 150.536);
--muted-foreground: oklch(0.8 0.008 151.85);
--popover: oklch(0.09 0.006 37.541);
--popover-foreground: oklch(0.992 0.001 34.315);
--card: oklch(0.09 0.006 37.541);
--card-foreground: oklch(0.992 0.001 34.315);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.02 34.298);
--primary-foreground: oklch(0.285 0.02 34.393);
--secondary: oklch(0.834 0.033 151.405);
--secondary-foreground: oklch(0.303 0.03 150.376);
--accent: oklch(0.798 0.03 294.887);
--accent-foreground: oklch(0.269 0.029 293.529);
--destructive: oklch(0.628 0.22 29.075);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.02 34.298);
--chart-1: oklch(0.814 0.02 34.298);
--chart-2: oklch(0.834 0.033 151.405);
--chart-3: oklch(0.798 0.03 294.887);
--chart-4: oklch(0.856 0.028 151.502);
--chart-5: oklch(0.813 0.024 34.3);
}