Celeriac is a shadcn/ui theme built around a near-white primary color (#f8fbfc) with near-white accents (#f8f8fc). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the near-white primary (#f8fbfc) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #020303black |
| Foreground | #010304black | #ffffffwhite |
| Card | #fcfdfdwhite | #020303black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #fcfdfdwhite | #020303black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #f8fbfcghostwhite | #f8fbfcghostwhite |
| Primary foreground | #193343darkslategray | #193343darkslategray |
| Secondary | #f8fcfcmintcream | #f8fcfcmintcream |
| Secondary foreground | #19433ddarkslategray | #19433ddarkslategray |
| Muted | #f2f3f3whitesmoke | #0c0d0dblack |
| Muted foreground | #3b4e4cdarkslategray | #b1c4c1silver |
| Accent | #f8f8fcghostwhite | #f8f8fcghostwhite |
| Accent foreground | #35418ddarkslateblue | #35418ddarkslateblue |
| Destructive | #7b1804maroon | #f7411dorangered |
| Destructive foreground | #fcc1b5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fbfcghostwhite | #f8fbfcghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 12.60:1 | AAA |
| Secondary button | 10.63:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.67:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 12.60:1 | AAA |
| Secondary button | 10.63:1 | AAA |
| Muted text | 10.66:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Celeriac in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 232.601);
--foreground: oklch(0.092 0.012 224.671);
--muted: oklch(0.963 0.001 187.714);
--muted-foreground: oklch(0.409 0.024 186.21);
--popover: oklch(0.992 0.002 232.601);
--popover-foreground: oklch(0.092 0.012 224.671);
--card: oklch(0.992 0.002 232.601);
--card-foreground: oklch(0.092 0.012 224.671);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.004 232.634);
--primary-foreground: oklch(0.309 0.042 235.757);
--secondary: oklch(0.988 0.005 187.626);
--secondary-foreground: oklch(0.35 0.047 183.612);
--accent: oklch(0.98 0.005 279.259);
--accent-foreground: oklch(0.409 0.125 273.018);
--destructive: oklch(0.381 0.136 32.828);
--destructive-foreground: oklch(0.861 0.071 31.433);
--ring: oklch(0.985 0.004 232.634);
--chart-1: oklch(0.985 0.004 232.634);
--chart-2: oklch(0.988 0.005 187.626);
--chart-3: oklch(0.98 0.005 279.259);
--chart-4: oklch(1.006 0.002 7.809);
--chart-5: oklch(0.985 0.004 232.638);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.006 228.545);
--foreground: oklch(1 0 180);
--muted: oklch(0.159 0.002 187.417);
--muted-foreground: oklch(0.804 0.021 187.087);
--popover: oklch(0.092 0.006 228.545);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0.006 228.545);
--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.985 0.004 232.634);
--primary-foreground: oklch(0.309 0.042 235.757);
--secondary: oklch(0.988 0.005 187.626);
--secondary-foreground: oklch(0.35 0.047 183.612);
--accent: oklch(0.98 0.005 279.259);
--accent-foreground: oklch(0.409 0.125 273.018);
--destructive: oklch(0.644 0.223 32.846);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.004 232.634);
--chart-1: oklch(0.985 0.004 232.634);
--chart-2: oklch(0.988 0.005 187.626);
--chart-3: oklch(0.98 0.005 279.259);
--chart-4: oklch(1.006 0.002 7.809);
--chart-5: oklch(0.985 0.004 232.638);
}