Grocery is a shadcn/ui theme built around a green primary color (#4ec155) with muted light green accents (#b4cfb6). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#4ec155) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030c03black | #f9fbf9mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030c03black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030c03black | #f9fbf9mintcream |
| Primary | #4ec155mediumseagreen | #4ec155mediumseagreen |
| Primary foreground | #113113black | #113113black |
| Secondary | #d4ded4lightgrey | #151916black |
| Secondary foreground | #374839darkslategray | #aab5abdarkgray |
| Muted | #e0f0e1gainsboro | #0f1f10black |
| Muted foreground | #555855dimgray | #a7aaa7darkgray |
| Accent | #b4cfb6silver | #253126darkslategray |
| Accent foreground | #203221darkslategray | #bccdbdsilver |
| Destructive | #6f170bmaroon | #ec5541tomato |
| Destructive foreground | #f8bdb5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4ec155mediumseagreen | #4ec155mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 7.30:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 5.93:1 | AA |
Paste this into your globals.css to use Grocery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.029 145.922);
--muted: oklch(0.94 0.027 147.258);
--muted-foreground: oklch(0.458 0.007 147.399);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.029 145.922);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.029 145.922);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.72 0.18 144.538);
--primary-foreground: oklch(0.281 0.065 144.849);
--secondary: oklch(0.89 0.016 147.361);
--secondary-foreground: oklch(0.382 0.033 146.634);
--accent: oklch(0.828 0.045 146.99);
--accent-foreground: oklch(0.295 0.038 146.156);
--destructive: oklch(0.357 0.124 31.024);
--destructive-foreground: oklch(0.848 0.07 27.203);
--ring: oklch(0.72 0.18 144.538);
--chart-1: oklch(0.72 0.18 144.538);
--chart-2: oklch(0.89 0.016 147.361);
--chart-3: oklch(0.828 0.045 146.99);
--chart-4: oklch(0.912 0.013 147.403);
--chart-5: oklch(0.728 0.189 144.393);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.002 147.524);
--muted: oklch(0.22 0.037 145.677);
--muted-foreground: oklch(0.734 0.006 147.465);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.002 147.524);
--card: oklch(0 0 0);
--card-foreground: oklch(0.985 0.002 147.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.72 0.18 144.538);
--primary-foreground: oklch(0.281 0.065 144.849);
--secondary: oklch(0.207 0.008 147.173);
--secondary-foreground: oklch(0.763 0.019 147.296);
--accent: oklch(0.3 0.026 146.64);
--accent-foreground: oklch(0.83 0.028 147.211);
--destructive: oklch(0.649 0.191 30.439);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.72 0.18 144.538);
--chart-1: oklch(0.72 0.18 144.538);
--chart-2: oklch(0.207 0.008 147.173);
--chart-3: oklch(0.3 0.026 146.64);
--chart-4: oklch(0.241 0.01 147.134);
--chart-5: oklch(0.728 0.189 144.393);
}