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.
Unruly is a shadcn/ui theme built around a deep yellow primary color (#5c4514) with deep green accents (#4f5c14). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#5c4514) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #070603black |
| Foreground | #140f06black | #ffffffwhite |
| Card | #fcfbf8snow | #070603black |
| Card foreground | #140f06black | #ffffffwhite |
| Popover | #fcfbf8snow | #070603black |
| Popover foreground | #140f06black | #ffffffwhite |
| Primary | #5c4514saddlebrown | #5c4514saddlebrown |
| Primary foreground | #eedcb4wheat | #eedcb4wheat |
| Secondary | #5c2114maroon | #5c2114maroon |
| Secondary foreground | #eebeb4lightpink | #eebeb4lightpink |
| Muted | #f4e9e7linen | #180e0bblack |
| Muted foreground | #656261dimgray | #9e9a9adarkgray |
| Accent | #4f5c14darkolivegreen | #4f5c14darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b30c09firebrick | #da0f0bred |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c4514saddlebrown | #5c4514saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.39:1 | AAA |
| Text on card | 18.39:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 5.17:1 | AA |
Paste this into your globals.css to use Unruly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 86.023);
--foreground: oklch(0.172 0.021 86.911);
--muted: oklch(0.942 0.012 32.665);
--muted-foreground: oklch(0.5 0.004 32.662);
--popover: oklch(0.987 0.004 86.023);
--popover-foreground: oklch(0.172 0.021 86.911);
--card: oklch(0.987 0.004 86.023);
--card-foreground: oklch(0.172 0.021 86.911);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.406 0.072 82.996);
--primary-foreground: oklch(0.899 0.056 86.056);
--secondary: oklch(0.335 0.089 34.145);
--secondary-foreground: oklch(0.843 0.058 32.843);
--accent: oklch(0.449 0.095 119.565);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.486 0.194 28.934);
--destructive-foreground: oklch(0.968 0.015 18.596);
--ring: oklch(0.406 0.072 82.996);
--chart-1: oklch(0.406 0.072 82.996);
--chart-2: oklch(0.335 0.089 34.145);
--chart-3: oklch(0.449 0.095 119.565);
--chart-4: oklch(0.365 0.099 34.151);
--chart-5: oklch(0.409 0.074 82.636);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 90.37);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.019 33.1);
--muted-foreground: oklch(0.69 0.004 32.661);
--popover: oklch(0.122 0.01 90.37);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.01 90.37);
--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.406 0.072 82.996);
--primary-foreground: oklch(0.899 0.056 86.056);
--secondary: oklch(0.335 0.089 34.145);
--secondary-foreground: oklch(0.843 0.058 32.843);
--accent: oklch(0.449 0.095 119.565);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.562 0.225 29.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.406 0.072 82.996);
--chart-1: oklch(0.406 0.072 82.996);
--chart-2: oklch(0.335 0.089 34.145);
--chart-3: oklch(0.449 0.095 119.565);
--chart-4: oklch(0.365 0.099 34.151);
--chart-5: oklch(0.409 0.074 82.636);
}