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.
Rare is a shadcn/ui theme built around an orange primary color (#986b3e) with blue accents (#3e6b98). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#986b3e) on an orange-tinted background (#0e0a07).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0e0a07black |
| Foreground | #040301black | #ffffffwhite |
| Card | #fefcfbsnow | #0e0a07black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fefcfbsnow | #0e0a07black |
| Popover foreground | #040301black | #ffffffwhite |
| Primary | #986b3esienna | #986b3esienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3e6b98steelblue | #3e6b98steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d7dbe0gainsboro | #1f2428darkslategray |
| Muted foreground | #3b454fdarkslategray | #b0bac4silver |
| Accent | #3e6b98steelblue | #3e6b98steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #742601maroon | #fd5508orangered |
| Destructive foreground | #fec4a9navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #986b3esienna | #986b3esienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 4.65:1 | AA |
| Secondary button | 5.57:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 5.57:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 4.65:1 | AA |
| Secondary button | 5.57:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 5.57:1 | AA |
| Destructive | 3.24:1 | AA Large |
Paste this into your globals.css to use Rare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 67.801);
--foreground: oklch(0.095 0.012 76.927);
--muted: oklch(0.89 0.008 247.917);
--muted-foreground: oklch(0.385 0.022 248.404);
--popover: oklch(0.993 0.002 67.801);
--popover-foreground: oklch(0.095 0.012 76.927);
--card: oklch(0.993 0.002 67.801);
--card-foreground: oklch(0.095 0.012 76.927);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.565 0.084 64.697);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.516 0.087 249.863);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.516 0.087 249.863);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.383 0.118 40.41);
--destructive-foreground: oklch(0.866 0.076 46.042);
--ring: oklch(0.565 0.084 64.697);
--chart-1: oklch(0.565 0.084 64.697);
--chart-2: oklch(0.516 0.087 249.863);
--chart-3: oklch(0.516 0.087 249.863);
--chart-4: oklch(0.542 0.092 249.885);
--chart-5: oklch(0.568 0.089 64.316);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.01 69.89);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.011 248.259);
--muted-foreground: oklch(0.785 0.019 248.066);
--popover: oklch(0.149 0.01 69.89);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.01 69.89);
--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.565 0.084 64.697);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.516 0.087 249.863);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.516 0.087 249.863);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.672 0.215 38.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.565 0.084 64.697);
--chart-1: oklch(0.565 0.084 64.697);
--chart-2: oklch(0.516 0.087 249.863);
--chart-3: oklch(0.516 0.087 249.863);
--chart-4: oklch(0.542 0.092 249.885);
--chart-5: oklch(0.568 0.089 64.316);
}