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.
Defenseless is a shadcn/ui theme built around a teal primary color (#469588) with yellow accents (#958846). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the teal primary (#469588) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #030707black |
| Foreground | #020d0bblack | #f9fbfbghostwhite |
| Card | #fcfdfdwhite | #030707black |
| Card foreground | #020d0bblack | #f9fbfbghostwhite |
| Popover | #fcfdfdwhite | #030707black |
| Popover foreground | #020d0bblack | #f9fbfbghostwhite |
| Primary | #469588cadetblue | #469588cadetblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #884695rebeccapurple | #884695rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f3f1f3whitesmoke | #0d0c0eblack |
| Muted foreground | #4f4351darkslategray | #baaebcsilver |
| Accent | #958846olivedrab | #958846olivedrab |
| Accent foreground | #000000black | #000000black |
| Destructive | #c65310chocolate | #ee722bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #469588cadetblue | #469588cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 3.54:1 | AA Large |
| Secondary button | 6.24:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 5.88:1 | AA |
| Destructive | 4.52:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 3.54:1 | AA Large |
| Secondary button | 6.24:1 | AA |
| Muted text | 9.17:1 | AAA |
| Accent | 5.88:1 | AA |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use Defenseless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 185.396);
--foreground: oklch(0.146 0.019 184.123);
--muted: oklch(0.961 0.002 320.535);
--muted-foreground: oklch(0.399 0.029 320.64);
--popover: oklch(0.994 0.002 185.396);
--popover-foreground: oklch(0.146 0.019 184.123);
--card: oklch(0.994 0.002 185.396);
--card-foreground: oklch(0.146 0.019 184.123);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.617 0.081 181.17);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.139 320.739);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.624 0.088 98.252);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.583 0.163 44.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.081 181.17);
--chart-1: oklch(0.617 0.081 181.17);
--chart-2: oklch(0.508 0.139 320.739);
--chart-3: oklch(0.624 0.088 98.252);
--chart-4: oklch(0.533 0.147 320.738);
--chart-5: oklch(0.624 0.086 180.845);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 185.186);
--foreground: oklch(0.986 0.003 185.382);
--muted: oklch(0.157 0.004 320.569);
--muted-foreground: oklch(0.765 0.025 320.581);
--popover: oklch(0.123 0.011 185.186);
--popover-foreground: oklch(0.986 0.003 185.382);
--card: oklch(0.123 0.011 185.186);
--card-foreground: oklch(0.986 0.003 185.382);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.617 0.081 181.17);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.139 320.739);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.624 0.088 98.252);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.689 0.172 46.527);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.617 0.081 181.17);
--chart-1: oklch(0.617 0.081 181.17);
--chart-2: oklch(0.508 0.139 320.739);
--chart-3: oklch(0.624 0.088 98.252);
--chart-4: oklch(0.533 0.147 320.738);
--chart-5: oklch(0.624 0.086 180.845);
}