Gummy is a shadcn/ui theme built around a muted deep yellow primary color (#25231d) with muted deep blue accents (#1d1f25). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted deep yellow primary (#25231d) on a yellow-tinted background (#100d05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #100d05black |
| Foreground | #040301black | #fdfdfcwhite |
| Card | #fdfbf7snow | #141006black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfbf7snow | #141006black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #25231dblack | #25231dblack |
| Primary foreground | #c3beb1silver | #c3beb1silver |
| Secondary | #1d1f25black | #1d1f25black |
| Secondary foreground | #b1b6c3silver | #b1b6c3silver |
| Muted | #d4d9e8gainsboro | #171d2bblack |
| Muted foreground | #5c6170dimgray | #8f94a3lightslategray |
| Accent | #1d1f25black | #1d1f25black |
| Accent foreground | #b1b6c3silver | #b1b6c3silver |
| Destructive | #c70805firebrick | #f9231fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25231dblack | #25231dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 4.38:1 | AA Large |
| Accent | 8.10:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Gummy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 90.144);
--foreground: oklch(0.1 0.013 95.855);
--muted: oklch(0.886 0.021 269.914);
--muted-foreground: oklch(0.494 0.025 269.638);
--popover: oklch(0.989 0.006 90.167);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.006 90.167);
--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.257 0.012 90.391);
--primary-foreground: oklch(0.803 0.019 90.284);
--secondary: oklch(0.24 0.013 269.615);
--secondary-foreground: oklch(0.776 0.019 269.9);
--accent: oklch(0.24 0.013 269.615);
--accent-foreground: oklch(0.776 0.019 269.9);
--destructive: oklch(0.523 0.211 29.187);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.257 0.012 90.391);
--chart-1: oklch(0.257 0.012 90.391);
--chart-2: oklch(0.24 0.013 269.615);
--chart-3: oklch(0.24 0.013 269.615);
--chart-4: oklch(0.27 0.015 269.579);
--chart-5: oklch(0.259 0.015 90.417);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.019 92.496);
--foreground: oklch(0.993 0.001 90.131);
--muted: oklch(0.231 0.029 268.659);
--muted-foreground: oklch(0.668 0.023 269.807);
--popover: oklch(0.174 0.021 91.246);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.021 91.246);
--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.257 0.012 90.391);
--primary-foreground: oklch(0.803 0.019 90.284);
--secondary: oklch(0.24 0.013 269.615);
--secondary-foreground: oklch(0.776 0.019 269.9);
--accent: oklch(0.24 0.013 269.615);
--accent-foreground: oklch(0.776 0.019 269.9);
--destructive: oklch(0.628 0.242 28.435);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.257 0.012 90.391);
--chart-1: oklch(0.257 0.012 90.391);
--chart-2: oklch(0.24 0.013 269.615);
--chart-3: oklch(0.24 0.013 269.615);
--chart-4: oklch(0.27 0.015 269.579);
--chart-5: oklch(0.259 0.015 90.417);
}