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.
Palatable is a shadcn/ui theme built around a red primary color (#ba7f73) with yellow accents (#baa273). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the red primary (#ba7f73) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf8f7snow | #080302black |
| Foreground | #040201black | #ffffffwhite |
| Card | #fcf4f3lavenderblush | #0c0503black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf4f3lavenderblush | #0c0503black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ba7f73rosybrown | #ba7f73rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #ba738brosybrown | #ba738brosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2d4d9gainsboro | #2b1d21black |
| Muted foreground | #56484ddarkslategray | #b7a9aedarkgray |
| Accent | #baa273darkkhaki | #baa273darkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #b50603firebrick | #fb1713red |
| Destructive foreground | #ffebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ba7f73rosybrown | #ba7f73rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 5.90:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 8.52:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 5.90:1 | AA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.52:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Palatable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 31.054);
--foreground: oklch(0.086 0.012 37.706);
--muted: oklch(0.883 0.017 355.136);
--muted-foreground: oklch(0.418 0.021 355.968);
--popover: oklch(0.974 0.008 31.06);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.008 31.06);
--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.653 0.076 31.724);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.094 358.622);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.723 0.069 84.214);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.487 0.197 29.282);
--destructive-foreground: oklch(0.956 0.021 18.708);
--ring: oklch(0.653 0.076 31.724);
--chart-1: oklch(0.653 0.076 31.724);
--chart-2: oklch(0.638 0.094 358.622);
--chart-3: oklch(0.723 0.069 84.214);
--chart-4: oklch(0.665 0.086 358.136);
--chart-5: oklch(0.652 0.083 31.823);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.015 37.39);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.024 357.218);
--muted-foreground: oklch(0.748 0.018 355.26);
--popover: oklch(0.125 0.017 37.198);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.017 37.198);
--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.653 0.076 31.724);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.094 358.622);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.723 0.069 84.214);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.627 0.249 28.913);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.076 31.724);
--chart-1: oklch(0.653 0.076 31.724);
--chart-2: oklch(0.638 0.094 358.622);
--chart-3: oklch(0.723 0.069 84.214);
--chart-4: oklch(0.665 0.086 358.136);
--chart-5: oklch(0.652 0.083 31.823);
}