Edible is a shadcn/ui theme built around a muted light orange primary color (#e0ddd6) with muted light violet accents (#ddd6e0). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted light orange primary (#e0ddd6) on an orange-tinted background (#0c0903).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0c0903black |
| Foreground | #040301black | #ffffffwhite |
| Card | #fefdfbsnow | #0c0903black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fefdfbsnow | #0c0903black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #e0ddd6gainsboro | #e0ddd6gainsboro |
| Primary foreground | #4c4539darkslategray | #4c4539darkslategray |
| Secondary | #d6e0ddgainsboro | #d6e0ddgainsboro |
| Secondary foreground | #394c45darkslategray | #394c45darkslategray |
| Muted | #e0e5e4gainsboro | #1a1f1dblack |
| Muted foreground | #4f695fdimgray | #96b0a7darkgray |
| Accent | #ddd6e0gainsboro | #ddd6e0gainsboro |
| Accent foreground | #45394cdarkslategray | #45394cdarkslategray |
| Destructive | #cf3d0cfirebrick | #f25926chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0ddd6gainsboro | #e0ddd6gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 4.70:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.25:1 | AA |
Paste this into your globals.css to use Edible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 81.514);
--foreground: oklch(0.098 0.014 89.305);
--muted: oklch(0.919 0.006 172.387);
--muted-foreground: oklch(0.496 0.034 170.407);
--popover: oklch(0.994 0.003 81.514);
--popover-foreground: oklch(0.098 0.014 89.305);
--card: oklch(0.994 0.003 81.514);
--card-foreground: oklch(0.098 0.014 89.305);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.009 81.509);
--primary-foreground: oklch(0.393 0.021 81.356);
--secondary: oklch(0.899 0.012 172.19);
--secondary-foreground: oklch(0.397 0.026 170.512);
--accent: oklch(0.885 0.015 313.5);
--accent-foreground: oklch(0.364 0.035 313.016);
--destructive: oklch(0.571 0.19 35.947);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.009 81.509);
--chart-1: oklch(0.898 0.009 81.509);
--chart-2: oklch(0.899 0.012 172.19);
--chart-3: oklch(0.885 0.015 313.5);
--chart-4: oklch(0.921 0.009 172.282);
--chart-5: oklch(0.899 0.011 81.507);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 87.295);
--foreground: oklch(1 0 180);
--muted: oklch(0.232 0.008 171.5);
--muted-foreground: oklch(0.735 0.031 171.277);
--popover: oklch(0.14 0.016 87.295);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.016 87.295);
--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.898 0.009 81.509);
--primary-foreground: oklch(0.393 0.021 81.356);
--secondary: oklch(0.899 0.012 172.19);
--secondary-foreground: oklch(0.397 0.026 170.512);
--accent: oklch(0.885 0.015 313.5);
--accent-foreground: oklch(0.364 0.035 313.016);
--destructive: oklch(0.662 0.198 37.493);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.898 0.009 81.509);
--chart-1: oklch(0.898 0.009 81.509);
--chart-2: oklch(0.899 0.012 172.19);
--chart-3: oklch(0.885 0.015 313.5);
--chart-4: oklch(0.921 0.009 172.282);
--chart-5: oklch(0.899 0.011 81.507);
}