Comestible is a shadcn/ui theme built around a deep yellow primary color (#766519) with deep green accents (#587619). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the deep yellow primary (#766519) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf6snow | #000000black |
| Foreground | #161204black | #fdfdfcwhite |
| Card | #fdfcf6snow | #000000black |
| Card foreground | #161204black | #fdfdfcwhite |
| Popover | #fdfcf6snow | #000000black |
| Popover foreground | #161204black | #fdfdfcwhite |
| Primary | #766519olive | #766519olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #763619saddlebrown | #763619saddlebrown |
| Secondary foreground | #f4d9cdbisque | #f4d9cdbisque |
| Muted | #ecdcd5gainsboro | #2a1a13black |
| Muted foreground | #4f4845darkslategray | #bab3b0darkgray |
| Accent | #587619darkolivegreen | #587619darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #bc3e10firebrick | #ed6635tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #766519olive | #766519olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.24:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 5.22:1 | AA |
| Destructive | 5.48:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 5.22:1 | AA |
| Destructive | 6.58:1 | AA |
Paste this into your globals.css to use Comestible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 96.264);
--foreground: oklch(0.184 0.029 98.12);
--muted: oklch(0.906 0.02 46.621);
--muted-foreground: oklch(0.408 0.011 46.569);
--popover: oklch(0.991 0.008 96.264);
--popover-foreground: oklch(0.184 0.029 98.12);
--card: oklch(0.991 0.008 96.264);
--card-foreground: oklch(0.184 0.029 98.12);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.508 0.094 95.857);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.413 0.098 43.619);
--secondary-foreground: oklch(0.905 0.035 46.462);
--accent: oklch(0.524 0.121 126.069);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.539 0.17 37.551);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.508 0.094 95.857);
--chart-1: oklch(0.508 0.094 95.857);
--chart-2: oklch(0.413 0.098 43.619);
--chart-3: oklch(0.524 0.121 126.069);
--chart-4: oklch(0.443 0.107 43.515);
--chart-5: oklch(0.514 0.097 95.665);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 96.182);
--muted: oklch(0.237 0.028 45.773);
--muted-foreground: oklch(0.772 0.009 46.722);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 96.182);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 96.182);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.508 0.094 95.857);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.413 0.098 43.619);
--secondary-foreground: oklch(0.905 0.035 46.462);
--accent: oklch(0.524 0.121 126.069);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.672 0.179 39.4);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.508 0.094 95.857);
--chart-1: oklch(0.508 0.094 95.857);
--chart-2: oklch(0.413 0.098 43.619);
--chart-3: oklch(0.524 0.121 126.069);
--chart-4: oklch(0.443 0.107 43.515);
--chart-5: oklch(0.514 0.097 95.665);
}