Appetizer is a shadcn/ui theme built around a light green primary color (#f8fcf3) with light green accents (#f4fcf3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f8fcf3) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #030401black | #ffffffwhite |
| Card | #fcfcfcsnow | #050703black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050703black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f8fcf3whitesmoke | #f8fcf3whitesmoke |
| Primary foreground | #2e4314darkgreen | #2e4314darkgreen |
| Secondary | #fcfbf3floralwhite | #fcfbf3floralwhite |
| Secondary foreground | #434114darkolivegreen | #434114darkolivegreen |
| Muted | #eeedddbeige | #222111black |
| Muted foreground | #43433ddarkslategray | #c2c2bcsilver |
| Accent | #f4fcf3honeydew | #f4fcf3honeydew |
| Accent foreground | #164314darkgreen | #164314darkgreen |
| Destructive | #8b2804saddlebrown | #f94e10orangered |
| Destructive foreground | #fdd3c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fcf3whitesmoke | #f8fcf3whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 10.44:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 10.82:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 10.44:1 | AAA |
| Secondary button | 10.09:1 | AAA |
| Muted text | 9.09:1 | AAA |
| Accent | 10.82:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Appetizer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.02 125.233);
--muted: oklch(0.942 0.021 104.34);
--muted-foreground: oklch(0.38 0.01 104.416);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.012 126.582);
--primary-foreground: oklch(0.354 0.077 130.121);
--secondary: oklch(0.987 0.011 104.153);
--secondary-foreground: oklch(0.367 0.064 106.288);
--accent: oklch(0.981 0.014 144.047);
--accent-foreground: oklch(0.34 0.091 142.49);
--destructive: oklch(0.428 0.14 36.983);
--destructive-foreground: oklch(0.899 0.053 40.973);
--ring: oklch(0.985 0.012 126.582);
--chart-1: oklch(0.985 0.012 126.582);
--chart-2: oklch(0.987 0.011 104.153);
--chart-3: oklch(0.981 0.014 144.047);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.012 126.59);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 125.66);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.027 105.661);
--muted-foreground: oklch(0.813 0.008 104.147);
--popover: oklch(0.125 0.016 125.66);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.016 125.66);
--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.985 0.012 126.582);
--primary-foreground: oklch(0.354 0.077 130.121);
--secondary: oklch(0.987 0.011 104.153);
--secondary-foreground: oklch(0.367 0.064 106.288);
--accent: oklch(0.981 0.014 144.047);
--accent-foreground: oklch(0.34 0.091 142.49);
--destructive: oklch(0.659 0.216 36.759);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.012 126.582);
--chart-1: oklch(0.985 0.012 126.582);
--chart-2: oklch(0.987 0.011 104.153);
--chart-3: oklch(0.981 0.014 144.047);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.985 0.012 126.59);
}