Edible is a shadcn/ui theme built around a cyan primary color (#8fc3dc) with blue accents (#8f9ddc). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#8fc3dc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030a0dblack | #f5f8fawhitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020609black | #f8fafcghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020609black | #f8fafcghostwhite |
| Primary | #8fc3dcskyblue | #8fc3dcskyblue |
| Primary foreground | #0d212bblack | #0d212bblack |
| Secondary | #8fdccdskyblue | #8fdccdskyblue |
| Secondary foreground | #0d2b25black | #0d2b25black |
| Muted | #d7e0degainsboro | #1f2826darkslategray |
| Muted foreground | #4f5f5cdimgray | #a0b0addarkgray |
| Accent | #8f9ddcmediumpurple | #8f9ddcmediumpurple |
| Accent foreground | #0d132bblack | #0d132bblack |
| Destructive | #b80505firebrick | #f92424crimson |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8fc3dcskyblue | #8fc3dcskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 9.52:1 | AAA |
| Muted text | 4.98:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 8.67:1 | AAA |
| Secondary button | 9.52:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Edible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.016 221.38);
--muted: oklch(0.898 0.009 184.029);
--muted-foreground: oklch(0.47 0.02 183.147);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.118 0.014 220.046);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.118 0.014 220.046);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.789 0.065 228.302);
--primary-foreground: oklch(0.237 0.031 230.032);
--secondary: oklch(0.839 0.079 181.466);
--secondary-foreground: oklch(0.263 0.036 179.49);
--accent: oklch(0.708 0.093 274.062);
--accent-foreground: oklch(0.196 0.048 271.733);
--destructive: oklch(0.493 0.2 28.992);
--destructive-foreground: oklch(0.967 0.016 17.429);
--ring: oklch(0.789 0.065 228.302);
--chart-1: oklch(0.789 0.065 228.302);
--chart-2: oklch(0.839 0.079 181.466);
--chart-3: oklch(0.708 0.093 274.062);
--chart-4: oklch(0.855 0.071 181.837);
--chart-5: oklch(0.791 0.068 228.413);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.004 226.908);
--muted: oklch(0.268 0.012 183.021);
--muted-foreground: oklch(0.745 0.018 183.66);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.985 0.003 226.891);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.003 226.891);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.789 0.065 228.302);
--primary-foreground: oklch(0.237 0.031 230.032);
--secondary: oklch(0.839 0.079 181.466);
--secondary-foreground: oklch(0.263 0.036 179.49);
--accent: oklch(0.708 0.093 274.062);
--accent-foreground: oklch(0.196 0.048 271.733);
--destructive: oklch(0.629 0.242 27.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.065 228.302);
--chart-1: oklch(0.789 0.065 228.302);
--chart-2: oklch(0.839 0.079 181.466);
--chart-3: oklch(0.708 0.093 274.062);
--chart-4: oklch(0.855 0.071 181.837);
--chart-5: oklch(0.791 0.068 228.413);
}