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.
Airspace is a shadcn/ui theme built around a near-black primary color (#010402) with near-black accents (#040201). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#010402) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #06130ablack | #f5faf6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #06130ablack | #f5faf6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #06130ablack | #f5faf6whitesmoke |
| Primary | #010402black | #010402black |
| Primary foreground | #29a84dseagreen | #29a84dseagreen |
| Secondary | #020104black | #020104black |
| Secondary foreground | #c2b1eclightsteelblue | #c2b1eclightsteelblue |
| Muted | #e7e6ealavender | #161519black |
| Muted foreground | #514d5cdarkslategray | #a8a3b2darkgray |
| Accent | #040201black | #040201black |
| Accent foreground | #d8815fperu | #d8815fperu |
| Destructive | #d92a02orangered | #fd4117orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010402black | #010402black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 10.70:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 10.70:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Airspace in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.028 152.609);
--muted: oklch(0.927 0.006 299.199);
--muted-foreground: oklch(0.428 0.025 298.285);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.028 152.609);
--card: oklch(1 0 180);
--card-foreground: oklch(0.172 0.028 152.609);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.098 0.016 154.613);
--primary-foreground: oklch(0.645 0.17 148.155);
--secondary: oklch(0.077 0.019 299.354);
--secondary-foreground: oklch(0.795 0.084 297.442);
--accent: oklch(0.089 0.011 51.825);
--accent-foreground: oklch(0.69 0.118 42.098);
--destructive: oklch(0.572 0.213 32.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.098 0.016 154.613);
--chart-1: oklch(0.098 0.016 154.613);
--chart-2: oklch(0.077 0.019 299.354);
--chart-3: oklch(0.089 0.011 51.825);
--chart-4: oklch(0.123 0.031 297.878);
--chart-5: oklch(0.098 0.017 154.586);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.007 155.061);
--muted: oklch(0.198 0.008 298.579);
--muted-foreground: oklch(0.725 0.022 298.779);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.007 155.061);
--card: oklch(0 0 0);
--card-foreground: oklch(0.98 0.007 155.061);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.098 0.016 154.613);
--primary-foreground: oklch(0.645 0.17 148.155);
--secondary: oklch(0.077 0.019 299.354);
--secondary-foreground: oklch(0.795 0.084 297.442);
--accent: oklch(0.089 0.011 51.825);
--accent-foreground: oklch(0.69 0.118 42.098);
--destructive: oklch(0.653 0.229 33.269);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.098 0.016 154.613);
--chart-1: oklch(0.098 0.016 154.613);
--chart-2: oklch(0.077 0.019 299.354);
--chart-3: oklch(0.089 0.011 51.825);
--chart-4: oklch(0.123 0.031 297.878);
--chart-5: oklch(0.098 0.017 154.586);
}