Gobbler is a shadcn/ui theme built around a green primary color (#78c48a) with red accents (#c48a78). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#78c48a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #78c48adarkseagreen | #78c48adarkseagreen |
| Primary foreground | #030704black | #030704black |
| Secondary | #8a78c4mediumpurple | #8a78c4mediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5e3edlavender | #14121cblack |
| Muted foreground | #57555edimgray | #a3a1aadarkgray |
| Accent | #c48a78rosybrown | #c48a78rosybrown |
| Accent foreground | #070403black | #070403black |
| Destructive | #a33100saddlebrown | #ff5b14orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #78c48adarkseagreen | #78c48adarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 5.57:1 | AA |
| Muted text | 5.76:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 5.57:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Gobbler in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.014 296.797);
--muted-foreground: oklch(0.454 0.015 296.5);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.755 0.112 150.446);
--primary-foreground: oklch(0.121 0.014 152.728);
--secondary: oklch(0.621 0.113 293.565);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.686 0.076 37.632);
--accent-foreground: oklch(0.113 0.009 42.332);
--destructive: oklch(0.481 0.158 37.998);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.755 0.112 150.446);
--chart-1: oklch(0.755 0.112 150.446);
--chart-2: oklch(0.621 0.113 293.565);
--chart-3: oklch(0.686 0.076 37.632);
--chart-4: oklch(0.652 0.103 294.065);
--chart-5: oklch(0.76 0.12 150.236);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 153.228);
--muted: oklch(0.189 0.021 294.971);
--muted-foreground: oklch(0.714 0.013 296.752);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 153.228);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 153.228);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.755 0.112 150.446);
--primary-foreground: oklch(0.121 0.014 152.728);
--secondary: oklch(0.621 0.113 293.565);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.686 0.076 37.632);
--accent-foreground: oklch(0.113 0.009 42.332);
--destructive: oklch(0.683 0.211 39.018);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.755 0.112 150.446);
--chart-1: oklch(0.755 0.112 150.446);
--chart-2: oklch(0.621 0.113 293.565);
--chart-3: oklch(0.686 0.076 37.632);
--chart-4: oklch(0.652 0.103 294.065);
--chart-5: oklch(0.76 0.12 150.236);
}