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.
Immigrant is a shadcn/ui theme built around a light pink primary color (#ecd4dc) with light teal accents (#d4ece5). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the light pink primary (#ecd4dc) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0a0507black |
| Foreground | #0b0406black | #fbf9fasnow |
| Card | #fcf8f9snow | #0a0507black |
| Card foreground | #0b0406black | #fbf9fasnow |
| Popover | #fcf8f9snow | #0a0507black |
| Popover foreground | #0b0406black | #fbf9fasnow |
| Primary | #ecd4dcgainsboro | #ecd4dcgainsboro |
| Primary foreground | #632c3csaddlebrown | #632c3csaddlebrown |
| Secondary | #d4ece5gainsboro | #d4ece5gainsboro |
| Secondary foreground | #0c1c18black | #0c1c18black |
| Muted | #dfece8gainsboro | #13201cblack |
| Muted foreground | #445550darkslategray | #aabbb6darkgray |
| Accent | #d4ece5gainsboro | #d4ece5gainsboro |
| Accent foreground | #0c1c18black | #0c1c18black |
| Destructive | #a74311saddlebrown | #e35b16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecd4dcgainsboro | #ecd4dcgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 14.21:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 14.21:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 14.21:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 14.21:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Immigrant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 356.78);
--foreground: oklch(0.122 0.019 356.564);
--muted: oklch(0.933 0.016 176.164);
--muted-foreground: oklch(0.433 0.023 175.049);
--popover: oklch(0.982 0.004 356.78);
--popover-foreground: oklch(0.122 0.019 356.564);
--card: oklch(0.982 0.004 356.78);
--card-foreground: oklch(0.122 0.019 356.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.028 357.546);
--primary-foreground: oklch(0.373 0.083 2.981);
--secondary: oklch(0.925 0.027 175.786);
--secondary-foreground: oklch(0.212 0.024 172.717);
--accent: oklch(0.925 0.027 175.786);
--accent-foreground: oklch(0.212 0.024 172.717);
--destructive: oklch(0.511 0.144 42.394);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.028 357.546);
--chart-1: oklch(0.893 0.028 357.546);
--chart-2: oklch(0.925 0.027 175.786);
--chart-3: oklch(0.925 0.027 175.786);
--chart-4: oklch(0.943 0.02 176.023);
--chart-5: oklch(0.892 0.03 357.615);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.012 356.514);
--foreground: oklch(0.984 0.001 356.699);
--muted: oklch(0.231 0.021 173.672);
--muted-foreground: oklch(0.777 0.02 175.896);
--popover: oklch(0.126 0.012 356.514);
--popover-foreground: oklch(0.984 0.001 356.699);
--card: oklch(0.126 0.012 356.514);
--card-foreground: oklch(0.984 0.001 356.699);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.028 357.546);
--primary-foreground: oklch(0.373 0.083 2.981);
--secondary: oklch(0.925 0.027 175.786);
--secondary-foreground: oklch(0.212 0.024 172.717);
--accent: oklch(0.925 0.027 175.786);
--accent-foreground: oklch(0.212 0.024 172.717);
--destructive: oklch(0.64 0.184 41.914);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.028 357.546);
--chart-1: oklch(0.893 0.028 357.546);
--chart-2: oklch(0.925 0.027 175.786);
--chart-3: oklch(0.925 0.027 175.786);
--chart-4: oklch(0.943 0.02 176.023);
--chart-5: oklch(0.892 0.03 357.615);
}