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.
Criticism is a shadcn/ui theme built around a neutral gray primary color (#7e6d77) with neutral gray accents (#6d7e74). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#7e6d77) on a pink-tinted background (#0e070b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e070bblack |
| Foreground | #14050eblack | #fbf9fasnow |
| Card | #ffffffwhite | #0e070bblack |
| Card foreground | #14050eblack | #fbf9fasnow |
| Popover | #ffffffwhite | #0e070bblack |
| Popover foreground | #14050eblack | #fbf9fasnow |
| Primary | #7e6d77gray | #7e6d77gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d7e74gray | #6d7e74gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5e2dagainsboro | #1d2a23darkslategray |
| Muted foreground | #486152darkslategray | #9eb7a9darkgray |
| Accent | #6d7e74gray | #6d7e74gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a03e0dsaddlebrown | #ee6f2ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e6d77gray | #7e6d77gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 5.05:1 | AA |
| Accent | 4.31:1 | AA Large |
| Destructive | 6.56:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 4.31:1 | AA Large |
| Muted text | 6.93:1 | AA |
| Accent | 4.31:1 | AA Large |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Criticism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.033 344.586);
--muted: oklch(0.901 0.018 160.535);
--muted-foreground: oklch(0.467 0.039 158.893);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.033 344.586);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.033 344.586);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.554 0.025 342.033);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.575 0.024 159.984);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.575 0.024 159.984);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.494 0.142 42.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.025 342.033);
--chart-1: oklch(0.554 0.025 342.033);
--chart-2: oklch(0.575 0.024 159.984);
--chart-3: oklch(0.575 0.024 159.984);
--chart-4: oklch(0.602 0.025 159.977);
--chart-5: oklch(0.55 0.036 342.467);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 342.407);
--foreground: oklch(0.984 0.002 341.07);
--muted: oklch(0.272 0.024 158.763);
--muted-foreground: oklch(0.758 0.035 159.889);
--popover: oklch(0.14 0.016 342.407);
--popover-foreground: oklch(0.984 0.002 341.07);
--card: oklch(0.14 0.016 342.407);
--card-foreground: oklch(0.984 0.002 341.07);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.554 0.025 342.033);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.575 0.024 159.984);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.575 0.024 159.984);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.685 0.174 44.122);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.554 0.025 342.033);
--chart-1: oklch(0.554 0.025 342.033);
--chart-2: oklch(0.575 0.024 159.984);
--chart-3: oklch(0.575 0.024 159.984);
--chart-4: oklch(0.602 0.025 159.977);
--chart-5: oklch(0.55 0.036 342.467);
}