Grouchy is a shadcn/ui theme built around a green primary color (#86e9b4) with muted light green accents (#cddfd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#86e9b4) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030705black |
| Foreground | #03110ablack | #f8fcfamintcream |
| Card | #fcfcfcsnow | #050a07black |
| Card foreground | #020d07black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #050a07black |
| Popover foreground | #020d07black | #fcfdfcwhite |
| Primary | #86e9b4lightgreen | #86e9b4lightgreen |
| Primary foreground | #09341ddarkgreen | #09341ddarkgreen |
| Secondary | #e7eeealavender | #2d2f2edarkslategray |
| Secondary foreground | #19241eblack | #c6c8c7silver |
| Muted | #ebefedwhitesmoke | #101412black |
| Muted foreground | #474847darkslategray | #b7b8b8silver |
| Accent | #cddfd6lightgrey | #3f4b44darkslategray |
| Accent foreground | #304b3cdarkslategray | #dbe1degainsboro |
| Destructive | #9c1b0dfirebrick | #d92612firebrick |
| Destructive foreground | #fce1demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86e9b4lightgreen | #86e9b4lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 9.41:1 | AAA |
| Secondary button | 13.58:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 9.41:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 4.96:1 | AA |
Paste this into your globals.css to use Grouchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.162 0.028 161.057);
--muted: oklch(0.949 0.005 163.323);
--muted-foreground: oklch(0.4 0.002 163.301);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.144 0.024 162.944);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.024 162.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.859 0.12 159.168);
--primary-foreground: oklch(0.288 0.062 155.491);
--secondary: oklch(0.943 0.009 163.206);
--secondary-foreground: oklch(0.247 0.018 161.443);
--accent: oklch(0.888 0.023 162.771);
--accent-foreground: oklch(0.385 0.041 160.37);
--destructive: oklch(0.448 0.166 30.519);
--destructive-foreground: oklch(0.931 0.031 25.289);
--ring: oklch(0.859 0.12 159.168);
--chart-1: oklch(0.859 0.12 159.168);
--chart-2: oklch(0.943 0.009 163.206);
--chart-3: oklch(0.888 0.023 162.771);
--chart-4: oklch(0.964 0.006 163.3);
--chart-5: oklch(0.863 0.124 158.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.011 163.49);
--foreground: oklch(0.987 0.004 163.335);
--muted: oklch(0.185 0.007 162.485);
--muted-foreground: oklch(0.782 0.002 163.383);
--popover: oklch(0.138 0.012 163.489);
--popover-foreground: oklch(0.993 0.002 163.39);
--card: oklch(0.138 0.012 163.489);
--card-foreground: oklch(0.993 0.002 163.39);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.859 0.12 159.168);
--primary-foreground: oklch(0.288 0.062 155.491);
--secondary: oklch(0.302 0.003 163.182);
--secondary-foreground: oklch(0.831 0.003 163.354);
--accent: oklch(0.4 0.019 162.162);
--accent-foreground: oklch(0.904 0.008 163.228);
--destructive: oklch(0.57 0.215 30.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.859 0.12 159.168);
--chart-1: oklch(0.859 0.12 159.168);
--chart-2: oklch(0.302 0.003 163.182);
--chart-3: oklch(0.4 0.019 162.162);
--chart-4: oklch(0.333 0.004 163.173);
--chart-5: oklch(0.863 0.124 158.984);
}