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.
Ear is a shadcn/ui theme built around a deep red primary color (#321e1b) with muted light red accents (#e6dddb). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the deep red primary (#321e1b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #000000black |
| Foreground | #040101black | #f9f6f6whitesmoke |
| Card | #fcf4f3lavenderblush | #030303black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #fcf4f3lavenderblush | #030303black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #321e1bblack | #321e1bblack |
| Primary foreground | #d2b1acsilver | #d2b1acsilver |
| Secondary | #e6dddbgainsboro | #151414black |
| Secondary foreground | #543e3bdarkslategray | #b1abaadarkgray |
| Muted | #f4e8e6linen | #190d0bblack |
| Muted foreground | #534341darkslategray | #beafacdarkgray |
| Accent | #e6dddbgainsboro | #151414black |
| Accent foreground | #543e3bdarkslategray | #b1abaadarkgray |
| Destructive | #cc190ffirebrick | #ef332acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #321e1bblack | #321e1bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Ear in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 27.96);
--foreground: oklch(0.085 0.014 35.135);
--muted: oklch(0.94 0.013 28.009);
--muted-foreground: oklch(0.4 0.022 28.307);
--popover: oklch(0.973 0.008 27.975);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.008 27.975);
--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.259 0.032 29.054);
--primary-foreground: oklch(0.789 0.039 28.269);
--secondary: oklch(0.903 0.01 27.991);
--secondary-foreground: oklch(0.388 0.03 28.533);
--accent: oklch(0.903 0.01 27.991);
--accent-foreground: oklch(0.388 0.03 28.533);
--destructive: oklch(0.539 0.21 29.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.259 0.032 29.054);
--chart-1: oklch(0.259 0.032 29.054);
--chart-2: oklch(0.903 0.01 27.991);
--chart-3: oklch(0.903 0.01 27.991);
--chart-4: oklch(0.927 0.008 27.974);
--chart-5: oklch(0.259 0.035 29.22);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 27.947);
--muted: oklch(0.174 0.021 29.046);
--muted-foreground: oklch(0.765 0.018 28.068);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 27.943);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 27.943);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.259 0.032 29.054);
--primary-foreground: oklch(0.789 0.039 28.269);
--secondary: oklch(0.192 0.002 27.997);
--secondary-foreground: oklch(0.746 0.007 27.979);
--accent: oklch(0.192 0.002 27.997);
--accent-foreground: oklch(0.746 0.007 27.979);
--destructive: oklch(0.62 0.223 28.687);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.259 0.032 29.054);
--chart-1: oklch(0.259 0.032 29.054);
--chart-2: oklch(0.192 0.002 27.997);
--chart-3: oklch(0.192 0.002 27.997);
--chart-4: oklch(0.225 0.003 28.006);
--chart-5: oklch(0.259 0.035 29.22);
}