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.
Relay is a shadcn/ui theme built around a light orange primary color (#f6e0c1) with light green accents (#f2f6c1). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the light orange primary (#f6e0c1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #000000black |
| Foreground | #090601black | #fcfaf8snow |
| Card | #fcfaf8snow | #000000black |
| Card foreground | #090601black | #fcfaf8snow |
| Popover | #fcfaf8snow | #000000black |
| Popover foreground | #090601black | #fcfaf8snow |
| Primary | #f6e0c1bisque | #f6e0c1bisque |
| Primary foreground | #1b1104black | #1b1104black |
| Secondary | #f6c5c1pink | #f6c5c1pink |
| Secondary foreground | #741911maroon | #741911maroon |
| Muted | #f3e9e8linen | #170d0cblack |
| Muted foreground | #5a4f4edimgray | #b1a6a5darkgray |
| Accent | #f2f6c1lemonchiffon | #f2f6c1lemonchiffon |
| Accent foreground | #191b04black | #191b04black |
| Destructive | #c10401firebrick | #e40501red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6e0c1bisque | #f6e0c1bisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 14.46:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 15.60:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 14.46:1 | AAA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 15.60:1 | AAA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use Relay in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.004 76.635);
--foreground: oklch(0.123 0.02 86.572);
--muted: oklch(0.94 0.011 23.698);
--muted-foreground: oklch(0.439 0.015 23.932);
--popover: oklch(0.986 0.004 76.635);
--popover-foreground: oklch(0.123 0.02 86.572);
--card: oklch(0.986 0.004 76.635);
--card-foreground: oklch(0.123 0.02 86.572);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.916 0.048 76.284);
--primary-foreground: oklch(0.187 0.03 76.47);
--secondary: oklch(0.865 0.057 24.341);
--secondary-foreground: oklch(0.369 0.127 29.632);
--accent: oklch(0.957 0.069 111.574);
--accent-foreground: oklch(0.213 0.04 113.558);
--destructive: oklch(0.51 0.208 29.371);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.916 0.048 76.284);
--chart-1: oklch(0.916 0.048 76.284);
--chart-2: oklch(0.865 0.057 24.341);
--chart-3: oklch(0.957 0.069 111.574);
--chart-4: oklch(0.894 0.044 24.125);
--chart-5: oklch(0.917 0.05 76.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 76.636);
--muted: oklch(0.174 0.018 24.87);
--muted-foreground: oklch(0.734 0.013 23.755);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 76.636);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.003 76.636);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.916 0.048 76.284);
--primary-foreground: oklch(0.187 0.03 76.47);
--secondary: oklch(0.865 0.057 24.341);
--secondary-foreground: oklch(0.369 0.127 29.632);
--accent: oklch(0.957 0.069 111.574);
--accent-foreground: oklch(0.213 0.04 113.558);
--destructive: oklch(0.579 0.236 29.345);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.916 0.048 76.284);
--chart-1: oklch(0.916 0.048 76.284);
--chart-2: oklch(0.865 0.057 24.341);
--chart-3: oklch(0.957 0.069 111.574);
--chart-4: oklch(0.894 0.044 24.125);
--chart-5: oklch(0.917 0.05 76.263);
}