Grubby is a shadcn/ui theme built around a light blue primary color (#e9f2fb) with light green accents (#f2fbe9). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#e9f2fb) on a blue-tinted background (#04080b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04080bblack |
| Foreground | #050d14black | #fcfcfdwhite |
| Card | #ffffffwhite | #04080bblack |
| Card foreground | #050d14black | #fcfcfdwhite |
| Popover | #ffffffwhite | #04080bblack |
| Popover foreground | #050d14black | #fcfcfdwhite |
| Primary | #e9f2fbaliceblue | #e9f2fbaliceblue |
| Primary foreground | #1b5998teal | #1b5998teal |
| Secondary | #fbe9f2lavenderblush | #fbe9f2lavenderblush |
| Secondary foreground | #981b59brown | #981b59brown |
| Muted | #ece9eblinen | #161314black |
| Muted foreground | #4f4047darkslategray | #bfb0b8silver |
| Accent | #f2fbe9honeydew | #f2fbe9honeydew |
| Accent foreground | #26410bdarkgreen | #26410bdarkgreen |
| Destructive | #621204maroon | #f53614orangered |
| Destructive foreground | #fbab9dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9f2fbaliceblue | #e9f2fbaliceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.86:1 | AA |
| Muted text | 8.08:1 | AAA |
| Accent | 10.73:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.86:1 | AA |
| Muted text | 8.89:1 | AAA |
| Accent | 10.73:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Grubby in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.021 246.536);
--muted: oklch(0.937 0.004 345.244);
--muted-foreground: oklch(0.39 0.023 346.603);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.021 246.536);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.021 246.536);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.958 0.015 247.988);
--primary-foreground: oklch(0.46 0.119 252.189);
--secondary: oklch(0.952 0.023 345.752);
--secondary-foreground: oklch(0.456 0.167 356.282);
--accent: oklch(0.977 0.025 128.752);
--accent-foreground: oklch(0.341 0.085 132.67);
--destructive: oklch(0.325 0.115 32.613);
--destructive-foreground: oklch(0.815 0.097 30.349);
--ring: oklch(0.958 0.015 247.988);
--chart-1: oklch(0.958 0.015 247.988);
--chart-2: oklch(0.952 0.023 345.752);
--chart-3: oklch(0.977 0.025 128.752);
--chart-4: oklch(0.981 0.009 345.38);
--chart-5: oklch(0.958 0.016 247.995);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.012 241.463);
--foreground: oklch(0.992 0.001 247.834);
--muted: oklch(0.191 0.005 345.868);
--muted-foreground: oklch(0.773 0.019 345.775);
--popover: oklch(0.129 0.012 241.463);
--popover-foreground: oklch(0.992 0.001 247.834);
--card: oklch(0.129 0.012 241.463);
--card-foreground: oklch(0.992 0.001 247.834);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.958 0.015 247.988);
--primary-foreground: oklch(0.46 0.119 252.189);
--secondary: oklch(0.952 0.023 345.752);
--secondary-foreground: oklch(0.456 0.167 356.282);
--accent: oklch(0.977 0.025 128.752);
--accent-foreground: oklch(0.341 0.085 132.67);
--destructive: oklch(0.632 0.23 31.974);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.958 0.015 247.988);
--chart-1: oklch(0.958 0.015 247.988);
--chart-2: oklch(0.952 0.023 345.752);
--chart-3: oklch(0.977 0.025 128.752);
--chart-4: oklch(0.981 0.009 345.38);
--chart-5: oklch(0.958 0.016 247.995);
}