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.
Harmless is a shadcn/ui theme built around a teal primary color (#478583) with muted light teal accents (#d5dcdc). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the teal primary (#478583) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfdmintcream | #050a0ablack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f3fcfbmintcream | #070d0dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f3fcfbmintcream | #070d0dblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #478583slategray | #478583slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8e8e8lavender | #121717black |
| Secondary foreground | #4e5050darkslategray | #a2b9b8darkgray |
| Muted | #eff0f0whitesmoke | #0f1010black |
| Muted foreground | #464e4ddarkslategray | #b1b9b9silver |
| Accent | #d5dcdcgainsboro | #1c2b2bdarkslategray |
| Accent foreground | #3a4545darkslategray | #afcbcalightsteelblue |
| Destructive | #b92204firebrick | #fa3a14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #478583slategray | #478583slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 6.63:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 4.26:1 | AA Large |
| Secondary button | 8.75:1 | AAA |
| Muted text | 9.54:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Harmless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 194.678);
--foreground: oklch(0 0 0);
--muted: oklch(0.955 0.002 194.758);
--muted-foreground: oklch(0.416 0.01 194.364);
--popover: oklch(0.983 0.009 194.622);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.009 194.622);
--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.574 0.064 192.715);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.931 0 194.78);
--secondary-foreground: oklch(0.429 0.002 194.7);
--accent: oklch(0.89 0.007 194.634);
--accent-foreground: oklch(0.382 0.015 194.07);
--destructive: oklch(0.508 0.189 32.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.064 192.715);
--chart-1: oklch(0.574 0.064 192.715);
--chart-2: oklch(0.931 0 194.78);
--chart-3: oklch(0.89 0.007 194.634);
--chart-4: oklch(0.954 0 194.783);
--chart-5: oklch(0.581 0.069 192.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.009 194.001);
--foreground: oklch(1 0 180);
--muted: oklch(0.172 0.002 194.52);
--muted-foreground: oklch(0.779 0.008 194.592);
--popover: oklch(0.153 0.01 193.694);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.01 193.694);
--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.574 0.064 192.715);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.2 0.009 193.989);
--secondary-foreground: oklch(0.768 0.025 194.186);
--accent: oklch(0.276 0.02 193.446);
--accent-foreground: oklch(0.82 0.03 194.116);
--destructive: oklch(0.644 0.231 32.535);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.064 192.715);
--chart-1: oklch(0.574 0.064 192.715);
--chart-2: oklch(0.2 0.009 193.989);
--chart-3: oklch(0.276 0.02 193.446);
--chart-4: oklch(0.236 0.011 193.9);
--chart-5: oklch(0.581 0.069 192.57);
}