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.
Tasty is a shadcn/ui theme built around a red primary color (#d66a57) with indigo accents (#6a57d6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#d66a57) on a neutral background (#070404).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070404black |
| Foreground | #170603black | #faf6f5whitesmoke |
| Card | #fdf8f7snow | #0a0605black |
| Card foreground | #120402black | #fbf9f8snow |
| Popover | #fdf8f7snow | #0a0605black |
| Popover foreground | #120402black | #fbf9f8snow |
| Primary | #d66a57indianred | #d66a57indianred |
| Primary foreground | #000000black | #000000black |
| Secondary | #57d66amediumseagreen | #57d66amediumseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #d6dbd7gainsboro | #242924darkslategray |
| Muted foreground | #405443darkslategray | #abbfaedarkgray |
| Accent | #6a57d6slateblue | #6a57d6slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6a1d0bmaroon | #e9512ftomato |
| Destructive foreground | #f7bdb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d66a57indianred | #d66a57indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 11.25:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 5.33:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 11.25:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 5.33:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Tasty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 29.478);
--foreground: oklch(0.149 0.035 37.076);
--muted: oklch(0.887 0.008 150.122);
--muted-foreground: oklch(0.424 0.039 148.983);
--popover: oklch(0.982 0.006 29.488);
--popover-foreground: oklch(0.136 0.03 38.228);
--card: oklch(0.982 0.006 29.488);
--card-foreground: oklch(0.136 0.03 38.228);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.648 0.14 31.509);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.781 0.187 146.31);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.545 0.188 285.157);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.354 0.113 33.9);
--destructive-foreground: oklch(0.848 0.069 32.915);
--ring: oklch(0.648 0.14 31.509);
--chart-1: oklch(0.648 0.14 31.509);
--chart-2: oklch(0.781 0.187 146.31);
--chart-3: oklch(0.545 0.188 285.157);
--chart-4: oklch(0.794 0.176 146.708);
--chart-5: oklch(0.649 0.147 31.631);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.008 32.242);
--foreground: oklch(0.975 0.004 29.483);
--muted: oklch(0.274 0.011 149.697);
--muted-foreground: oklch(0.785 0.033 149.677);
--popover: oklch(0.128 0.009 32.242);
--popover-foreground: oklch(0.983 0.003 29.478);
--card: oklch(0.128 0.009 32.242);
--card-foreground: oklch(0.983 0.003 29.478);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.648 0.14 31.509);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.781 0.187 146.31);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.545 0.188 285.157);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.194 34.072);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.14 31.509);
--chart-1: oklch(0.648 0.14 31.509);
--chart-2: oklch(0.781 0.187 146.31);
--chart-3: oklch(0.545 0.188 285.157);
--chart-4: oklch(0.794 0.176 146.708);
--chart-5: oklch(0.649 0.147 31.631);
}