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.
Timer is a shadcn/ui theme built around a muted deep pink primary color (#2d1a22) with muted deep red accents (#2d1c1a). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep pink primary (#2d1a22) on a pink-tinted background (#0b0407).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0b0407black |
| Foreground | #000000black | #faf5f7whitesmoke |
| Card | #fcf8f9snow | #0b0407black |
| Card foreground | #000000black | #faf5f7whitesmoke |
| Popover | #fcf8f9snow | #0b0407black |
| Popover foreground | #000000black | #faf5f7whitesmoke |
| Primary | #2d1a22black | #2d1a22black |
| Primary foreground | #cfabb9silver | #cfabb9silver |
| Secondary | #2d1a2bdarkslategray | #2d1a2bdarkslategray |
| Secondary foreground | #cfabcbplum | #cfabcbplum |
| Muted | #e4dde3gainsboro | #221b22black |
| Muted foreground | #4a4049darkslategray | #bfb5besilver |
| Accent | #2d1c1ablack | #2d1c1ablack |
| Accent foreground | #cfaeabsilver | #cfaeabsilver |
| Destructive | #c0120cfirebrick | #f23731crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d1a22black | #2d1a22black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Timer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 350.784);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.012 328.737);
--muted-foreground: oklch(0.385 0.019 329.134);
--popover: oklch(0.982 0.006 350.784);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.006 350.784);
--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.247 0.033 354.19);
--primary-foreground: oklch(0.777 0.046 352.226);
--secondary: oklch(0.251 0.042 330.321);
--secondary-foreground: oklch(0.782 0.06 329.409);
--accent: oklch(0.248 0.028 26.296);
--accent-foreground: oklch(0.779 0.038 25.461);
--destructive: oklch(0.513 0.202 29.132);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.247 0.033 354.19);
--chart-1: oklch(0.247 0.033 354.19);
--chart-2: oklch(0.251 0.042 330.321);
--chart-3: oklch(0.248 0.028 26.296);
--chart-4: oklch(0.281 0.05 330.404);
--chart-5: oklch(0.246 0.037 354.601);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.017 350.43);
--foreground: oklch(0.974 0.007 350.819);
--muted: oklch(0.233 0.017 329.355);
--muted-foreground: oklch(0.785 0.016 328.819);
--popover: oklch(0.124 0.017 350.43);
--popover-foreground: oklch(0.974 0.007 350.819);
--card: oklch(0.124 0.017 350.43);
--card-foreground: oklch(0.974 0.007 350.819);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.247 0.033 354.19);
--primary-foreground: oklch(0.777 0.046 352.226);
--secondary: oklch(0.251 0.042 330.321);
--secondary-foreground: oklch(0.782 0.06 329.409);
--accent: oklch(0.248 0.028 26.296);
--accent-foreground: oklch(0.779 0.038 25.461);
--destructive: oklch(0.629 0.223 27.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.247 0.033 354.19);
--chart-1: oklch(0.247 0.033 354.19);
--chart-2: oklch(0.251 0.042 330.321);
--chart-3: oklch(0.248 0.028 26.296);
--chart-4: oklch(0.281 0.05 330.404);
--chart-5: oklch(0.246 0.037 354.601);
}