Edible is a shadcn/ui theme built around a light purple primary color (#eb9cec) with muted light purple accents (#e7e3e8). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#eb9cec) on a neutral background (#080308).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #080308black |
| Foreground | #080208black | #fdfbfdsnow |
| Card | #fdf6fdsnow | #0b040bblack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fefbfewhite | #080308black |
| Popover foreground | #080208black | #fdfbfdsnow |
| Primary | #eb9cecplum | #eb9cecplum |
| Primary foreground | #480e49indigo | #480e49indigo |
| Secondary | #e7e3e8gainsboro | #1a131bblack |
| Secondary foreground | #524653darkslategray | #bca3bddarkgray |
| Muted | #f3ecf3whitesmoke | #120c13black |
| Muted foreground | #4f404fdarkslategray | #bfb0bfsilver |
| Accent | #e7e3e8gainsboro | #1a131bblack |
| Accent foreground | #524653darkslategray | #bca3bddarkgray |
| Destructive | #cb3001firebrick | #fe4810orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eb9cecplum | #eb9cecplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 8.33:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 9.34:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Edible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 325.142);
--foreground: oklch(0.108 0.026 326.753);
--muted: oklch(0.951 0.011 325.18);
--muted-foreground: oklch(0.392 0.033 325.664);
--popover: oklch(0.991 0.006 325.142);
--popover-foreground: oklch(0.108 0.026 326.753);
--card: oklch(0.982 0.012 325.185);
--card-foreground: oklch(0.086 0.021 326.753);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.798 0.138 326.207);
--primary-foreground: oklch(0.294 0.115 327.297);
--secondary: oklch(0.922 0.007 325.153);
--secondary-foreground: oklch(0.412 0.025 325.518);
--accent: oklch(0.922 0.007 325.153);
--accent-foreground: oklch(0.412 0.025 325.518);
--destructive: oklch(0.552 0.196 34.273);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.138 326.207);
--chart-1: oklch(0.798 0.138 326.207);
--chart-2: oklch(0.922 0.007 325.153);
--chart-3: oklch(0.922 0.007 325.153);
--chart-4: oklch(0.945 0.005 325.136);
--chart-5: oklch(0.797 0.144 326.25);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.022 326.497);
--foreground: oklch(0.991 0.003 325.124);
--muted: oklch(0.166 0.017 325.767);
--muted-foreground: oklch(0.774 0.028 325.348);
--popover: oklch(0.109 0.022 326.497);
--popover-foreground: oklch(0.991 0.003 325.124);
--card: oklch(0.125 0.025 326.471);
--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.798 0.138 326.207);
--primary-foreground: oklch(0.294 0.115 327.297);
--secondary: oklch(0.2 0.018 325.707);
--secondary-foreground: oklch(0.746 0.045 325.512);
--accent: oklch(0.2 0.018 325.707);
--accent-foreground: oklch(0.746 0.045 325.512);
--destructive: oklch(0.661 0.225 35.053);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.138 326.207);
--chart-1: oklch(0.798 0.138 326.207);
--chart-2: oklch(0.2 0.018 325.707);
--chart-3: oklch(0.2 0.018 325.707);
--chart-4: oklch(0.233 0.023 325.768);
--chart-5: oklch(0.797 0.144 326.25);
}