Vegetarian is a shadcn/ui theme built around a near-black primary color (#000502) with muted green accents (#afcfb9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000502) on a neutral background (#020804).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020804black |
| Foreground | #000000black | #f6f8f7whitesmoke |
| Card | #fcfcfcsnow | #040c06black |
| Card foreground | #000000black | #f9fbfamintcream |
| Popover | #ffffffwhite | #020804black |
| Popover foreground | #000000black | #f6f8f7whitesmoke |
| Primary | #000502black | #000502black |
| Primary foreground | #08c942limegreen | #08c942limegreen |
| Secondary | #ccdbd1lightgrey | #233428darkslategray |
| Secondary foreground | #314537darkslategray | #b9cfc0silver |
| Muted | #eaf5edhoneydew | #0a150dblack |
| Muted foreground | #3e423fdarkslategray | #bdc1besilver |
| Accent | #afcfb9silver | #305039darkslategray |
| Accent foreground | #1d3022darkslategray | #cfe2d5lightgrey |
| Destructive | #811504maroon | #e92507orangered |
| Destructive foreground | #fdc3balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000502black | #000502black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.23:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 9.23:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 10.25:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Vegetarian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.016 155.551);
--muted-foreground: oklch(0.373 0.007 155.518);
--popover: oklch(1 0 180);
--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.101 0.023 155.12);
--primary-foreground: oklch(0.727 0.221 145.923);
--secondary: oklch(0.877 0.021 155.403);
--secondary-foreground: oklch(0.367 0.035 153.906);
--accent: oklch(0.825 0.046 154.759);
--accent-foreground: oklch(0.287 0.035 153.253);
--destructive: oklch(0.389 0.144 31.658);
--destructive-foreground: oklch(0.866 0.068 28.543);
--ring: oklch(0.101 0.023 155.12);
--chart-1: oklch(0.101 0.023 155.12);
--chart-2: oklch(0.877 0.021 155.403);
--chart-3: oklch(0.825 0.046 154.759);
--chart-4: oklch(0.899 0.017 155.498);
--chart-5: oklch(0.101 0.024 155.098);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.017 155.431);
--foreground: oklch(0.978 0.003 155.806);
--muted: oklch(0.182 0.023 153.113);
--muted-foreground: oklch(0.808 0.006 155.736);
--popover: oklch(0.122 0.017 155.431);
--popover-foreground: oklch(0.978 0.003 155.806);
--card: oklch(0.14 0.02 155.307);
--card-foreground: oklch(0.986 0.002 155.827);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.101 0.023 155.12);
--primary-foreground: oklch(0.727 0.221 145.923);
--secondary: oklch(0.305 0.03 153.815);
--secondary-foreground: oklch(0.835 0.032 155.113);
--accent: oklch(0.398 0.053 152.941);
--accent-foreground: oklch(0.896 0.027 155.278);
--destructive: oklch(0.598 0.229 31.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.101 0.023 155.12);
--chart-1: oklch(0.101 0.023 155.12);
--chart-2: oklch(0.305 0.03 153.815);
--chart-3: oklch(0.398 0.053 152.941);
--chart-4: oklch(0.338 0.034 153.736);
--chart-5: oklch(0.101 0.024 155.098);
}