Ingredient is a shadcn/ui theme built around a green primary color (#8ebb25) with violet accents (#5225bb). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#8ebb25) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030401black |
| Foreground | #0d1004black | #fdfdfcwhite |
| Card | #f9fbf4whitesmoke | #060703black |
| Card foreground | #090c03black | #ffffffwhite |
| Popover | #f9fbf4whitesmoke | #060703black |
| Popover foreground | #090c03black | #ffffffwhite |
| Primary | #8ebb25yellowgreen | #8ebb25yellowgreen |
| Primary foreground | #0d1103black | #0d1103black |
| Secondary | #5225bbrebeccapurple | #5225bbrebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeaf6lavender | #0d0915black |
| Muted foreground | #625f67dimgray | #9a98a0darkgray |
| Accent | #5225bbrebeccapurple | #5225bbrebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8c2d08saddlebrown | #d9460dchocolate |
| Destructive foreground | #fcd8cabisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ebb25yellowgreen | #8ebb25yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.86:1 | AAA |
| Primary button | 8.48:1 | AAA |
| Secondary button | 8.95:1 | AAA |
| Muted text | 5.27:1 | AA |
| Accent | 8.95:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 8.48:1 | AAA |
| Secondary button | 8.95:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.95:1 | AAA |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Ingredient in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 120.144);
--foreground: oklch(0.166 0.027 121.636);
--muted: oklch(0.942 0.016 299.746);
--muted-foreground: oklch(0.492 0.013 299.599);
--popover: oklch(0.984 0.009 120.197);
--popover-foreground: oklch(0.148 0.023 120.295);
--card: oklch(0.984 0.009 120.197);
--card-foreground: oklch(0.148 0.023 120.295);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.735 0.175 125.8);
--primary-foreground: oklch(0.168 0.03 121.776);
--secondary: oklch(0.432 0.213 287.301);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.432 0.213 287.301);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.436 0.135 38.418);
--destructive-foreground: oklch(0.909 0.044 42.767);
--ring: oklch(0.735 0.175 125.8);
--chart-1: oklch(0.735 0.175 125.8);
--chart-2: oklch(0.432 0.213 287.301);
--chart-3: oklch(0.432 0.213 287.301);
--chart-4: oklch(0.453 0.225 287.164);
--chart-5: oklch(0.743 0.18 126.031);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 119.934);
--foreground: oklch(0.994 0.002 120.08);
--muted: oklch(0.153 0.026 297.113);
--muted-foreground: oklch(0.683 0.012 299.747);
--popover: oklch(0.126 0.014 119.934);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.014 119.934);
--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.735 0.175 125.8);
--primary-foreground: oklch(0.168 0.03 121.776);
--secondary: oklch(0.432 0.213 287.301);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.432 0.213 287.301);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.192 37.685);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.735 0.175 125.8);
--chart-1: oklch(0.735 0.175 125.8);
--chart-2: oklch(0.432 0.213 287.301);
--chart-3: oklch(0.432 0.213 287.301);
--chart-4: oklch(0.453 0.225 287.164);
--chart-5: oklch(0.743 0.18 126.031);
}