Cornmeal is a shadcn/ui theme built around a blue primary color (#a2b7cd) with green accents (#b7cda2). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#a2b7cd) on a blue-tinted background (#05080a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05080ablack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #070a0eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #05080ablack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #a2b7cdlightsteelblue | #a2b7cdlightsteelblue |
| Primary foreground | #151e28black | #151e28black |
| Secondary | #cda2b7silver | #cda2b7silver |
| Secondary foreground | #28151eblack | #28151eblack |
| Muted | #ecdfe5gainsboro | #201319black |
| Muted foreground | #5f4e56dimgray | #b1a0a8darkgray |
| Accent | #b7cda2silver | #b7cda2silver |
| Accent foreground | #1e2815black | #1e2815black |
| Destructive | #cb4506chocolate | #f86c2atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2b7cdlightsteelblue | #a2b7cdlightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.95:1 | AAA |
| Destructive | 4.79:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 8.95:1 | AAA |
| Destructive | 7.16:1 | AAA |
Paste this into your globals.css to use Cornmeal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.015 346.461);
--muted-foreground: oklch(0.445 0.026 347.535);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.771 0.039 250.094);
--primary-foreground: oklch(0.232 0.023 250.493);
--secondary: oklch(0.758 0.057 347.928);
--secondary-foreground: oklch(0.226 0.033 349.655);
--accent: oklch(0.82 0.063 129.975);
--accent-foreground: oklch(0.261 0.035 130.723);
--destructive: oklch(0.572 0.18 39.082);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.771 0.039 250.094);
--chart-1: oklch(0.771 0.039 250.094);
--chart-2: oklch(0.758 0.057 347.928);
--chart-3: oklch(0.82 0.063 129.975);
--chart-4: oklch(0.784 0.051 347.66);
--chart-5: oklch(0.77 0.043 250.137);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.009 244.829);
--foreground: oklch(0.992 0.001 249.664);
--muted: oklch(0.207 0.023 348.75);
--muted-foreground: oklch(0.722 0.023 346.856);
--popover: oklch(0.13 0.009 244.829);
--popover-foreground: oklch(0.992 0.001 249.664);
--card: oklch(0.143 0.01 247.414);
--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.771 0.039 250.094);
--primary-foreground: oklch(0.232 0.023 250.493);
--secondary: oklch(0.758 0.057 347.928);
--secondary-foreground: oklch(0.226 0.033 349.655);
--accent: oklch(0.82 0.063 129.975);
--accent-foreground: oklch(0.261 0.035 130.723);
--destructive: oklch(0.695 0.188 42.227);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.771 0.039 250.094);
--chart-1: oklch(0.771 0.039 250.094);
--chart-2: oklch(0.758 0.057 347.928);
--chart-3: oklch(0.82 0.063 129.975);
--chart-4: oklch(0.784 0.051 347.66);
--chart-5: oklch(0.77 0.043 250.137);
}