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.
Target is a shadcn/ui theme built around a vivid red primary color (#d13610) with vivid indigo accents (#3610d1). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid red primary (#d13610) on a red-tinted background (#0e0806).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0e0806black |
| Foreground | #000000black | #fcf9f8snow |
| Card | #fefcfbsnow | #0e0806black |
| Card foreground | #000000black | #fcf9f8snow |
| Popover | #fefcfbsnow | #0e0806black |
| Popover foreground | #000000black | #fcf9f8snow |
| Primary | #d13610firebrick | #d13610firebrick |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #10d136limegreen | #10d136limegreen |
| Secondary foreground | #011305black | #011305black |
| Muted | #e7f4e9honeydew | #0b180eblack |
| Muted foreground | #535f56dimgray | #a0aca2darkgray |
| Accent | #3610d1mediumblue | #3610d1mediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8f1a05darkred | #e72a08orangered |
| Destructive foreground | #fdd1c9pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d13610firebrick | #d13610firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 4.94:1 | AA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 9.77:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 4.94:1 | AA |
| Secondary button | 9.26:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 9.77:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Target in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 34.313);
--foreground: oklch(0 0 0);
--muted: oklch(0.953 0.019 151.7);
--muted-foreground: oklch(0.473 0.022 151.281);
--popover: oklch(0.991 0.002 34.313);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 34.313);
--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.568 0.196 33.903);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.748 0.236 144.445);
--secondary-foreground: oklch(0.165 0.041 149.641);
--accent: oklch(0.416 0.253 274.802);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.421 0.155 32.029);
--destructive-foreground: oklch(0.896 0.051 29.781);
--ring: oklch(0.568 0.196 33.903);
--chart-1: oklch(0.568 0.196 33.903);
--chart-2: oklch(0.748 0.236 144.445);
--chart-3: oklch(0.416 0.253 274.802);
--chart-4: oklch(0.786 0.248 144.412);
--chart-5: oklch(0.572 0.201 33.647);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.012 37.3);
--foreground: oklch(0.984 0.003 34.312);
--muted: oklch(0.194 0.028 149.601);
--muted-foreground: oklch(0.732 0.02 151.59);
--popover: oklch(0.142 0.012 37.3);
--popover-foreground: oklch(0.984 0.003 34.312);
--card: oklch(0.142 0.012 37.3);
--card-foreground: oklch(0.984 0.003 34.312);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.568 0.196 33.903);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.748 0.236 144.445);
--secondary-foreground: oklch(0.165 0.041 149.641);
--accent: oklch(0.416 0.253 274.802);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.225 31.582);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.568 0.196 33.903);
--chart-1: oklch(0.568 0.196 33.903);
--chart-2: oklch(0.748 0.236 144.445);
--chart-3: oklch(0.416 0.253 274.802);
--chart-4: oklch(0.786 0.248 144.412);
--chart-5: oklch(0.572 0.201 33.647);
}