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.
Evidence is a shadcn/ui theme built around a teal primary color (#25a76d) with muted light teal accents (#d5e1dc). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the teal primary (#25a76d) on a teal-tinted background (#070e0b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfdwhite | #070e0bblack |
| Foreground | #000000black | #f9fbfamintcream |
| Card | #fbfdfdwhite | #070e0bblack |
| Card foreground | #000000black | #f9fbfamintcream |
| Popover | #fbfdfdwhite | #070e0bblack |
| Popover foreground | #000000black | #f9fbfamintcream |
| Primary | #25a76dmediumseagreen | #25a76dmediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5e1dcgainsboro | #232524darkslategray |
| Secondary foreground | #374e43darkslategray | #bbbfbdsilver |
| Muted | #dde3e1gainsboro | #1c221fblack |
| Muted foreground | #56615cdimgray | #9ea9a4darkgray |
| Accent | #d5e1dcgainsboro | #232524darkslategray |
| Accent foreground | #374e43darkslategray | #bbbfbdsilver |
| Destructive | #d23404firebrick | #fa4e19orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #25a76dmediumseagreen | #25a76dmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 6.71:1 | AA |
| Muted text | 4.97:1 | AA |
| Accent | 6.71:1 | AA |
| Destructive | 4.95:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 3.06:1 | AA Large |
| Secondary button | 8.32:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Evidence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 167.744);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.008 167.583);
--muted-foreground: oklch(0.483 0.016 166.882);
--popover: oklch(0.994 0.002 167.744);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.002 167.744);
--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.647 0.14 158.059);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0.015 167.347);
--secondary-foreground: oklch(0.4 0.033 165.307);
--accent: oklch(0.9 0.015 167.347);
--accent-foreground: oklch(0.4 0.033 165.307);
--destructive: oklch(0.568 0.2 34.436);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.647 0.14 158.059);
--chart-1: oklch(0.647 0.14 158.059);
--chart-2: oklch(0.9 0.015 167.347);
--chart-3: oklch(0.9 0.015 167.347);
--chart-4: oklch(0.922 0.012 167.459);
--chart-5: oklch(0.655 0.145 157.644);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.014 166.312);
--foreground: oklch(0.986 0.002 167.743);
--muted: oklch(0.243 0.01 166.587);
--muted-foreground: oklch(0.724 0.014 167.257);
--popover: oklch(0.154 0.014 166.312);
--popover-foreground: oklch(0.986 0.002 167.743);
--card: oklch(0.154 0.014 166.312);
--card-foreground: oklch(0.986 0.002 167.743);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.647 0.14 158.059);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.261 0.004 167.427);
--secondary-foreground: oklch(0.8 0.005 167.637);
--accent: oklch(0.261 0.004 167.427);
--accent-foreground: oklch(0.8 0.005 167.637);
--destructive: oklch(0.661 0.217 35.691);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.647 0.14 158.059);
--chart-1: oklch(0.647 0.14 158.059);
--chart-2: oklch(0.261 0.004 167.427);
--chart-3: oklch(0.261 0.004 167.427);
--chart-4: oklch(0.293 0.004 167.407);
--chart-5: oklch(0.655 0.145 157.644);
}