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.
Tan is a shadcn/ui theme built around a neutral gray primary color (#4e5651) with neutral gray accents (#56514e). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#4e5651) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #03170bblack | #f4faf7whitesmoke |
| Card | #fcfcfcsnow | #020805black |
| Card foreground | #021209black | #f8fcfamintcream |
| Popover | #fcfcfcsnow | #020805black |
| Popover foreground | #021209black | #f8fcfamintcream |
| Primary | #4e5651darkslategray | #4e5651darkslategray |
| Primary foreground | #eaecealinen | #eaecealinen |
| Secondary | #514e56darkslategray | #514e56darkslategray |
| Secondary foreground | #eaeaeclavender | #eaeaeclavender |
| Muted | #d6cbe7thistle | #241834midnightblue |
| Muted foreground | #645973dimgray | #978ca6darkgray |
| Accent | #56514edarkslategray | #56514edarkslategray |
| Accent foreground | #eceaealinen | #eceaealinen |
| Destructive | #6d1803maroon | #f95b34tomato |
| Destructive foreground | #fcb7a6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e5651darkslategray | #4e5651darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 4.21:1 | AA Large |
| Accent | 6.54:1 | AA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 6.58:1 | AA |
Paste this into your globals.css to use Tan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.182 0.038 156.763);
--muted: oklch(0.86 0.04 304.409);
--muted-foreground: oklch(0.484 0.044 303.784);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.164 0.033 158.509);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.164 0.033 158.509);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.443 0.013 160.312);
--primary-foreground: oklch(0.94 0.003 160.946);
--secondary: oklch(0.428 0.014 304.595);
--secondary-foreground: oklch(0.937 0.003 305.003);
--accent: oklch(0.438 0.008 58.097);
--accent-foreground: oklch(0.939 0.002 58.337);
--destructive: oklch(0.354 0.121 34.446);
--destructive-foreground: oklch(0.84 0.084 34.527);
--ring: oklch(0.443 0.013 160.312);
--chart-1: oklch(0.443 0.013 160.312);
--chart-2: oklch(0.428 0.014 304.595);
--chart-3: oklch(0.438 0.008 58.097);
--chart-4: oklch(0.455 0.015 304.589);
--chart-5: oklch(0.447 0.02 159.889);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.014 160.941);
--foreground: oklch(0.981 0.008 160.83);
--muted: oklch(0.24 0.053 301.78);
--muted-foreground: oklch(0.658 0.041 304.189);
--popover: oklch(0.124 0.018 160.941);
--popover-foreground: oklch(0.987 0.005 160.892);
--card: oklch(0.124 0.018 160.941);
--card-foreground: oklch(0.987 0.005 160.892);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.443 0.013 160.312);
--primary-foreground: oklch(0.94 0.003 160.946);
--secondary: oklch(0.428 0.014 304.595);
--secondary-foreground: oklch(0.937 0.003 305.003);
--accent: oklch(0.438 0.008 58.097);
--accent-foreground: oklch(0.939 0.002 58.337);
--destructive: oklch(0.676 0.2 35.01);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.443 0.013 160.312);
--chart-1: oklch(0.443 0.013 160.312);
--chart-2: oklch(0.428 0.014 304.595);
--chart-3: oklch(0.438 0.008 58.097);
--chart-4: oklch(0.455 0.015 304.589);
--chart-5: oklch(0.447 0.02 159.889);
}