Croissant is a shadcn/ui theme built around a vivid light yellow primary color (#faeb8f) with muted light yellow accents (#e1dfd6). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the vivid light yellow primary (#faeb8f) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #030302black |
| Foreground | #141205black | #ffffffwhite |
| Card | #faf9f5whitesmoke | #070603black |
| Card foreground | #100f04black | #ffffffwhite |
| Popover | #fbfbf8snow | #030302black |
| Popover foreground | #141205black | #ffffffwhite |
| Primary | #faeb8fkhaki | #faeb8fkhaki |
| Primary foreground | #534804darkolivegreen | #534804darkolivegreen |
| Secondary | #ebeae6linen | #2e2c1fdarkslategray |
| Secondary foreground | #585546darkolivegreen | #cbc8b3silver |
| Muted | #e3e0cegainsboro | #312e1cdarkslategray |
| Muted foreground | #706d57dimgray | #a8a58fdarkgray |
| Accent | #e1dfd6gainsboro | #4d492ddarkolivegreen |
| Accent foreground | #4d4a38darkolivegreen | #e1deccgainsboro |
| Destructive | #931201darkred | #e91c01red |
| Destructive foreground | #ffcec7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #faeb8fkhaki | #faeb8fkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.13:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 6.21:1 | AA |
| Muted text | 3.95:1 | AA Large |
| Accent | 6.70:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Croissant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 99.394);
--foreground: oklch(0.181 0.025 101.197);
--muted: oklch(0.905 0.024 99.719);
--muted-foreground: oklch(0.531 0.034 100.174);
--popover: oklch(0.988 0.004 99.394);
--popover-foreground: oklch(0.181 0.025 101.197);
--card: oklch(0.982 0.005 99.42);
--card-foreground: oklch(0.164 0.022 101.665);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.933 0.115 100.651);
--primary-foreground: oklch(0.401 0.081 99.432);
--secondary: oklch(0.936 0.006 99.434);
--secondary-foreground: oklch(0.449 0.024 100.056);
--accent: oklch(0.904 0.013 99.556);
--accent-foreground: oklch(0.407 0.029 100.269);
--destructive: oklch(0.424 0.164 31.163);
--destructive-foreground: oklch(0.891 0.057 26.993);
--ring: oklch(0.933 0.115 100.651);
--chart-1: oklch(0.933 0.115 100.651);
--chart-2: oklch(0.936 0.006 99.434);
--chart-3: oklch(0.904 0.013 99.556);
--chart-4: oklch(0.957 0.004 99.401);
--chart-5: oklch(0.937 0.118 100.662);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.007 101.535);
--foreground: oklch(1 0 180);
--muted: oklch(0.298 0.03 100.527);
--muted-foreground: oklch(0.719 0.032 99.946);
--popover: oklch(0.098 0.007 101.535);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.009 101.535);
--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.933 0.115 100.651);
--primary-foreground: oklch(0.401 0.081 99.432);
--secondary: oklch(0.289 0.022 100.302);
--secondary-foreground: oklch(0.83 0.029 99.826);
--accent: oklch(0.401 0.043 100.566);
--accent-foreground: oklch(0.898 0.025 99.733);
--destructive: oklch(0.595 0.234 30.61);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.933 0.115 100.651);
--chart-1: oklch(0.933 0.115 100.651);
--chart-2: oklch(0.289 0.022 100.302);
--chart-3: oklch(0.401 0.043 100.566);
--chart-4: oklch(0.324 0.026 100.332);
--chart-5: oklch(0.937 0.118 100.662);
}