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.
Pantsuit is a shadcn/ui theme built around a deep teal primary color (#2b5446) with deep cyan accents (#2b4e54). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#2b5446) on a teal-tinted background (#070e0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e0bblack |
| Foreground | #000000black | #f6f9f8whitesmoke |
| Card | #ffffffwhite | #070e0bblack |
| Card foreground | #000000black | #f6f9f8whitesmoke |
| Popover | #ffffffwhite | #070e0bblack |
| Popover foreground | #000000black | #f6f9f8whitesmoke |
| Primary | #2b5446darkslategray | #2b5446darkslategray |
| Primary foreground | #cde5dcgainsboro | #cde5dcgainsboro |
| Secondary | #2b5431darkslategray | #2b5431darkslategray |
| Secondary foreground | #cde5d0lightgrey | #cde5d0lightgrey |
| Muted | #eaf1ebwhitesmoke | #0e150fblack |
| Muted foreground | #536a56dimgray | #95ac99darkseagreen |
| Accent | #2b4e54darkslategray | #2b4e54darkslategray |
| Accent foreground | #cde1e5gainsboro | #cde1e5gainsboro |
| Destructive | #c71a0afirebrick | #f43b2aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b5446darkslategray | #2b5446darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 5.11:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 5.87:1 | AA |
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 7.60:1 | AAA |
| Accent | 6.67:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Pantsuit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.01 150.102);
--muted-foreground: oklch(0.499 0.041 149.125);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.412 0.052 168.957);
--primary-foreground: oklch(0.901 0.028 172.627);
--secondary: oklch(0.406 0.074 147.484);
--secondary-foreground: oklch(0.898 0.038 149.678);
--accent: oklch(0.4 0.041 210.021);
--accent-foreground: oklch(0.896 0.023 209.429);
--destructive: oklch(0.529 0.205 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.052 168.957);
--chart-1: oklch(0.412 0.052 168.957);
--chart-2: oklch(0.406 0.074 147.484);
--chart-3: oklch(0.4 0.041 210.021);
--chart-4: oklch(0.439 0.081 147.433);
--chart-5: oklch(0.416 0.057 168.531);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.012 172.053);
--foreground: oklch(0.979 0.004 173.464);
--muted: oklch(0.188 0.016 149.104);
--muted-foreground: oklch(0.721 0.037 149.551);
--popover: oklch(0.153 0.012 172.053);
--popover-foreground: oklch(0.979 0.004 173.464);
--card: oklch(0.153 0.012 172.053);
--card-foreground: oklch(0.979 0.004 173.464);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.412 0.052 168.957);
--primary-foreground: oklch(0.901 0.028 172.627);
--secondary: oklch(0.406 0.074 147.484);
--secondary-foreground: oklch(0.898 0.038 149.678);
--accent: oklch(0.4 0.041 210.021);
--accent-foreground: oklch(0.896 0.023 209.429);
--destructive: oklch(0.634 0.223 29.773);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.412 0.052 168.957);
--chart-1: oklch(0.412 0.052 168.957);
--chart-2: oklch(0.406 0.074 147.484);
--chart-3: oklch(0.4 0.041 210.021);
--chart-4: oklch(0.439 0.081 147.433);
--chart-5: oklch(0.416 0.057 168.531);
}