Grouchy is a shadcn/ui theme built around a muted teal primary color (#9ec2c0) with muted blue accents (#9eb2c2). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#9ec2c0) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #020303black |
| Foreground | #000000black | #f5fafamintcream |
| Card | #fbfefewhite | #020303black |
| Card foreground | #000000black | #f5fafamintcream |
| Popover | #fbfefewhite | #020303black |
| Popover foreground | #000000black | #f5fafamintcream |
| Primary | #9ec2c0silver | #9ec2c0silver |
| Primary foreground | #121c1cblack | #121c1cblack |
| Secondary | #9ec2aedarkgray | #9ec2aedarkgray |
| Secondary foreground | #121c16black | #121c16black |
| Muted | #ebefedwhitesmoke | #101412black |
| Muted foreground | #3f4b44darkslategray | #b4c0b9silver |
| Accent | #9eb2c2darkgray | #9eb2c2darkgray |
| Accent foreground | #12181cblack | #12181cblack |
| Destructive | #951b09darkred | #f3462btomato |
| Destructive foreground | #fcd9d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ec2c0silver | #9ec2c0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 8.96:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 8.96:1 | AAA |
| Muted text | 9.91:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Grouchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 192.361);
--foreground: oklch(0 0 0);
--muted: oklch(0.949 0.005 161.689);
--muted-foreground: oklch(0.4 0.02 160.558);
--popover: oklch(0.995 0.003 192.361);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.003 192.361);
--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.787 0.039 191.384);
--primary-foreground: oklch(0.217 0.015 190.935);
--secondary: oklch(0.782 0.049 160.207);
--secondary-foreground: oklch(0.215 0.019 159.418);
--accent: oklch(0.754 0.032 240.892);
--accent-foreground: oklch(0.203 0.013 241.22);
--destructive: oklch(0.436 0.16 31.492);
--destructive-foreground: oklch(0.914 0.04 28.221);
--ring: oklch(0.787 0.039 191.384);
--chart-1: oklch(0.787 0.039 191.384);
--chart-2: oklch(0.782 0.049 160.207);
--chart-3: oklch(0.754 0.032 240.892);
--chart-4: oklch(0.803 0.044 160.419);
--chart-5: oklch(0.792 0.044 191.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.006 191.813);
--foreground: oklch(0.981 0.006 192.306);
--muted: oklch(0.185 0.007 160.873);
--muted-foreground: oklch(0.797 0.017 161.292);
--popover: oklch(0.096 0.006 191.813);
--popover-foreground: oklch(0.981 0.006 192.306);
--card: oklch(0.096 0.006 191.813);
--card-foreground: oklch(0.981 0.006 192.306);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.787 0.039 191.384);
--primary-foreground: oklch(0.217 0.015 190.935);
--secondary: oklch(0.782 0.049 160.207);
--secondary-foreground: oklch(0.215 0.019 159.418);
--accent: oklch(0.754 0.032 240.892);
--accent-foreground: oklch(0.203 0.013 241.22);
--destructive: oklch(0.642 0.214 31.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.787 0.039 191.384);
--chart-1: oklch(0.787 0.039 191.384);
--chart-2: oklch(0.782 0.049 160.207);
--chart-3: oklch(0.754 0.032 240.892);
--chart-4: oklch(0.803 0.044 160.419);
--chart-5: oklch(0.792 0.044 191.261);
}