Hay Coral is a shadcn/ui theme built around a yellow primary color (#d6cda9) with purple accents (#cda9d6). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#d6cda9) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #040301black |
| Foreground | #0d0b02black | #fbfaf9snow |
| Card | #fdfcf7snow | #040301black |
| Card foreground | #0d0b02black | #fbfaf9snow |
| Popover | #fdfcf7snow | #040301black |
| Popover foreground | #0d0b02black | #fbfaf9snow |
| Primary | #d6cda9silver | #d6cda9silver |
| Primary foreground | #342e19darkslategray | #342e19darkslategray |
| Secondary | #a9d6cdlightblue | #a9d6cdlightblue |
| Secondary foreground | #19342edarkslategray | #19342edarkslategray |
| Muted | #e6eae9lavender | #151918black |
| Muted foreground | #5d5f5fdimgray | #a0a2a1darkgray |
| Accent | #cda9d6plum | #cda9d6plum |
| Accent foreground | #2e1934darkslategray | #2e1934darkslategray |
| Destructive | #8d0b02darkred | #fc4336tomato |
| Destructive foreground | #fec7c3pink | #ffffffwhite |
| Border | #e6e5e0gainsboro | #1f1e19black |
| Input | #e6e5e0gainsboro | #1f1e19black |
| Ring | #d6cda9silver | #d6cda9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Hay Coral in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 95.106);
--foreground: oklch(0.148 0.022 99.245);
--muted: oklch(0.934 0.005 183.051);
--muted-foreground: oklch(0.485 0.002 183.046);
--popover: oklch(0.989 0.006 95.106);
--popover-foreground: oklch(0.148 0.022 99.245);
--card: oklch(0.989 0.006 95.106);
--card-foreground: oklch(0.148 0.022 99.245);
--border: oklch(0.921 0.007 95.127);
--input: oklch(0.921 0.007 95.127);
--primary: oklch(0.845 0.049 95.598);
--primary-foreground: oklch(0.302 0.036 95.771);
--secondary: oklch(0.841 0.048 181.52);
--secondary-foreground: oklch(0.3 0.035 179.412);
--accent: oklch(0.781 0.073 319.464);
--accent-foreground: oklch(0.254 0.057 319.399);
--destructive: oklch(0.408 0.161 30.111);
--destructive-foreground: oklch(0.877 0.064 23.169);
--ring: oklch(0.845 0.049 95.598);
--chart-1: oklch(0.845 0.049 95.598);
--chart-2: oklch(0.841 0.048 181.52);
--chart-3: oklch(0.781 0.073 319.464);
--chart-4: oklch(0.86 0.043 181.765);
--chart-5: oklch(0.849 0.053 95.629);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.012 99.182);
--foreground: oklch(0.986 0.002 95.058);
--muted: oklch(0.209 0.006 182.314);
--muted-foreground: oklch(0.709 0.002 183.098);
--popover: oklch(0.1 0.012 99.182);
--popover-foreground: oklch(0.986 0.002 95.058);
--card: oklch(0.1 0.012 99.182);
--card-foreground: oklch(0.986 0.002 95.058);
--border: oklch(0.235 0.01 95.486);
--input: oklch(0.235 0.01 95.486);
--primary: oklch(0.845 0.049 95.598);
--primary-foreground: oklch(0.302 0.036 95.771);
--secondary: oklch(0.841 0.048 181.52);
--secondary-foreground: oklch(0.3 0.035 179.412);
--accent: oklch(0.781 0.073 319.464);
--accent-foreground: oklch(0.254 0.057 319.399);
--destructive: oklch(0.656 0.223 28.827);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.049 95.598);
--chart-1: oklch(0.845 0.049 95.598);
--chart-2: oklch(0.841 0.048 181.52);
--chart-3: oklch(0.781 0.073 319.464);
--chart-4: oklch(0.86 0.043 181.765);
--chart-5: oklch(0.849 0.053 95.629);
}