Celeriac is a shadcn/ui theme built around a vivid light violet primary color (#ecccff) with muted light violet accents (#d6c9de). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light violet primary (#ecccff) on a violet-tinted background (#0c0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0c0510black |
| Foreground | #060109black | #ffffffwhite |
| Card | #fdfbfewhite | #0c0510black |
| Card foreground | #060109black | #ffffffwhite |
| Popover | #fdfbfewhite | #0c0510black |
| Popover foreground | #060109black | #ffffffwhite |
| Primary | #ecccfflavender | #ecccfflavender |
| Primary foreground | #610099indigo | #610099indigo |
| Secondary | #e9e4eclavender | #1b141fblack |
| Secondary foreground | #53415ddarkslategray | #b7a3c2darkgray |
| Muted | #e1dee3gainsboro | #1f1c21black |
| Muted foreground | #4e4653darkslategray | #b4acb9darkgray |
| Accent | #d6c9dethistle | #291d30darkslategray |
| Accent foreground | #3e2d49darkslategray | #c4afcfsilver |
| Destructive | #8d0b07darkred | #f63e37tomato |
| Destructive foreground | #fccbc9pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecccfflavender | #ecccfflavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Celeriac in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 313.581);
--foreground: oklch(0.099 0.033 316.376);
--muted: oklch(0.904 0.008 313.549);
--muted-foreground: oklch(0.407 0.025 313.225);
--popover: oklch(0.99 0.004 313.581);
--popover-foreground: oklch(0.099 0.033 316.376);
--card: oklch(0.99 0.004 313.581);
--card-foreground: oklch(0.099 0.033 316.376);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.888 0.077 313.074);
--primary-foreground: oklch(0.392 0.203 305.445);
--secondary: oklch(0.925 0.012 313.523);
--secondary-foreground: oklch(0.405 0.052 312.809);
--accent: oklch(0.854 0.032 313.377);
--accent-foreground: oklch(0.328 0.054 312.569);
--destructive: oklch(0.41 0.161 29.16);
--destructive-foreground: oklch(0.885 0.056 20.578);
--ring: oklch(0.888 0.077 313.074);
--chart-1: oklch(0.888 0.077 313.074);
--chart-2: oklch(0.925 0.012 313.523);
--chart-3: oklch(0.854 0.032 313.377);
--chart-4: oklch(0.95 0.008 313.552);
--chart-5: oklch(0.888 0.079 313.058);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.028 313.749);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.012 313.298);
--muted-foreground: oklch(0.755 0.022 313.429);
--popover: oklch(0.132 0.028 313.749);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.028 313.749);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.077 313.074);
--primary-foreground: oklch(0.392 0.203 305.445);
--secondary: oklch(0.206 0.022 312.943);
--secondary-foreground: oklch(0.743 0.048 313.207);
--accent: oklch(0.253 0.039 312.634);
--accent-foreground: oklch(0.782 0.05 313.216);
--destructive: oklch(0.641 0.221 27.521);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.077 313.074);
--chart-1: oklch(0.888 0.077 313.074);
--chart-2: oklch(0.206 0.022 312.943);
--chart-3: oklch(0.253 0.039 312.634);
--chart-4: oklch(0.236 0.028 312.879);
--chart-5: oklch(0.888 0.079 313.058);
}