Vegetable is a shadcn/ui theme built around a light green primary color (#b2e6b2) with light red accents (#e6b2b2). The light mode uses a neutral background (#fbfdfb). Dark mode keeps the light green primary (#b2e6b2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfbsnow | #000000black |
| Foreground | #020802black | #fcfdfcwhite |
| Card | #f8fcf8mintcream | #030303black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #030303black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #b2e6b2palegreen | #b2e6b2palegreen |
| Primary foreground | #194d19darkgreen | #194d19darkgreen |
| Secondary | #b2b2e6lightsteelblue | #b2b2e6lightsteelblue |
| Secondary foreground | #19194dmidnightblue | #19194dmidnightblue |
| Muted | #d5d5ddgainsboro | #22222adarkslategray |
| Muted foreground | #46464edarkslategray | #b1b1b9darkgray |
| Accent | #e6b2b2lightpink | #e6b2b2lightpink |
| Accent foreground | #4d1919maroon | #4d1919maroon |
| Destructive | #961608darkred | #f44734tomato |
| Destructive foreground | #fdd8d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2e6b2palegreen | #b2e6b2palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Vegetable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.004 145.549);
--foreground: oklch(0.122 0.026 143.774);
--muted: oklch(0.875 0.01 286.182);
--muted-foreground: oklch(0.398 0.012 285.826);
--popover: oklch(0.987 0.007 145.522);
--popover-foreground: oklch(0.097 0.021 143.774);
--card: oklch(0.987 0.007 145.522);
--card-foreground: oklch(0.097 0.021 143.774);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.875 0.089 144.77);
--primary-foreground: oklch(0.373 0.099 143.271);
--secondary: oklch(0.782 0.074 284.567);
--secondary-foreground: oklch(0.251 0.093 277.273);
--accent: oklch(0.811 0.061 18.486);
--accent-foreground: oklch(0.296 0.079 23.237);
--destructive: oklch(0.433 0.164 30.525);
--destructive-foreground: oklch(0.911 0.042 25.433);
--ring: oklch(0.875 0.089 144.77);
--chart-1: oklch(0.875 0.089 144.77);
--chart-2: oklch(0.782 0.074 284.567);
--chart-3: oklch(0.811 0.061 18.486);
--chart-4: oklch(0.815 0.062 284.943);
--chart-5: oklch(0.877 0.094 144.724);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 145.566);
--muted: oklch(0.257 0.014 285.352);
--muted-foreground: oklch(0.764 0.01 286.15);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.875 0.089 144.77);
--primary-foreground: oklch(0.373 0.099 143.271);
--secondary: oklch(0.782 0.074 284.567);
--secondary-foreground: oklch(0.251 0.093 277.273);
--accent: oklch(0.811 0.061 18.486);
--accent-foreground: oklch(0.296 0.079 23.237);
--destructive: oklch(0.646 0.213 30.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.089 144.77);
--chart-1: oklch(0.875 0.089 144.77);
--chart-2: oklch(0.782 0.074 284.567);
--chart-3: oklch(0.811 0.061 18.486);
--chart-4: oklch(0.815 0.062 284.943);
--chart-5: oklch(0.877 0.094 144.724);
}