Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Gorilla is a shadcn/ui theme built around a light teal primary color (#e0f0ec) with light red accents (#f0e0e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#e0f0ec) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010403black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010403black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #e0f0eclavender | #e0f0eclavender |
| Primary foreground | #122621black | #122621black |
| Secondary | #f0e0e4mistyrose | #f0e0e4mistyrose |
| Secondary foreground | #6b3340saddlebrown | #6b3340saddlebrown |
| Muted | #efdce0mistyrose | #231014black |
| Muted foreground | #644a50dimgray | #b59ba1darkgray |
| Accent | #f0e0e4mistyrose | #f0e0e4mistyrose |
| Accent foreground | #6b3340saddlebrown | #6b3340saddlebrown |
| Destructive | #5f0a07maroon | #ef261fcrimson |
| Destructive foreground | #f8a3a0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0f0eclavender | #e0f0eclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 13.47:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.47:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Gorilla in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.013 180.947);
--muted: oklch(0.911 0.022 1.63);
--muted-foreground: oklch(0.438 0.036 3.209);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.013 180.947);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.013 180.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.018 180.424);
--primary-foreground: oklch(0.25 0.027 177.294);
--secondary: oklch(0.921 0.018 1.508);
--secondary-foreground: oklch(0.399 0.08 6.574);
--accent: oklch(0.921 0.018 1.508);
--accent-foreground: oklch(0.399 0.08 6.574);
--destructive: oklch(0.313 0.118 28.739);
--destructive-foreground: oklch(0.798 0.103 21.772);
--ring: oklch(0.942 0.018 180.424);
--chart-1: oklch(0.942 0.018 180.424);
--chart-2: oklch(0.921 0.018 1.508);
--chart-3: oklch(0.921 0.018 1.508);
--chart-4: oklch(0.947 0.012 1.313);
--chart-5: oklch(0.943 0.019 180.378);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.202 0.033 5.468);
--muted-foreground: oklch(0.715 0.032 2.174);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.942 0.018 180.424);
--primary-foreground: oklch(0.25 0.027 177.294);
--secondary: oklch(0.921 0.018 1.508);
--secondary-foreground: oklch(0.399 0.08 6.574);
--accent: oklch(0.921 0.018 1.508);
--accent-foreground: oklch(0.399 0.08 6.574);
--destructive: oklch(0.612 0.233 28.72);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.018 180.424);
--chart-1: oklch(0.942 0.018 180.424);
--chart-2: oklch(0.921 0.018 1.508);
--chart-3: oklch(0.921 0.018 1.508);
--chart-4: oklch(0.947 0.012 1.313);
--chart-5: oklch(0.943 0.019 180.378);
}