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.
Windy is a shadcn/ui theme built around a near-black primary color (#0e1010) with near-black accents (#10100e). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the near-black primary (#0e1010) on a cyan-tinted background (#070c0d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #070c0dblack |
| Foreground | #020608black | #fbfdfdwhite |
| Card | #f8fbfcghostwhite | #090f11black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #090f11black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #0e1010black | #0e1010black |
| Primary foreground | #a3abaedarkgray | #a3abaedarkgray |
| Secondary | #100e10black | #100e10black |
| Secondary foreground | #aea3abdarkgray | #aea3abdarkgray |
| Muted | #f3ecf1whitesmoke | #130c11black |
| Muted foreground | #654e5fdimgray | #b19aabdarkgray |
| Accent | #10100eblack | #10100eblack |
| Accent foreground | #abaea3darkgray | #abaea3darkgray |
| Destructive | #a83310firebrick | #ed6840tomato |
| Destructive foreground | #fdf0ecseashell | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1010black | #0e1010black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.44:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Windy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 221.318);
--foreground: oklch(0.119 0.012 216.086);
--muted: oklch(0.951 0.01 334.706);
--muted-foreground: oklch(0.453 0.04 336.015);
--popover: oklch(0.986 0.003 221.333);
--popover-foreground: oklch(0.094 0.01 216.086);
--card: oklch(0.986 0.003 221.333);
--card-foreground: oklch(0.094 0.01 216.086);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.17 0.002 221.435);
--primary-foreground: oklch(0.735 0.01 221.423);
--secondary: oklch(0.168 0.004 334.947);
--secondary-foreground: oklch(0.727 0.016 334.91);
--accent: oklch(0.173 0.004 118.951);
--accent-foreground: oklch(0.744 0.015 118.918);
--destructive: oklch(0.493 0.159 35.936);
--destructive-foreground: oklch(0.965 0.015 37.673);
--ring: oklch(0.17 0.002 221.435);
--chart-1: oklch(0.17 0.002 221.435);
--chart-2: oklch(0.168 0.004 334.947);
--chart-3: oklch(0.173 0.004 118.951);
--chart-4: oklch(0.202 0.006 335.026);
--chart-5: oklch(0.171 0.004 221.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.008 220.688);
--foreground: oklch(0.993 0.002 221.319);
--muted: oklch(0.165 0.015 336.047);
--muted-foreground: oklch(0.712 0.036 335.389);
--popover: oklch(0.161 0.01 221.959);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.161 0.01 221.959);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.17 0.002 221.435);
--primary-foreground: oklch(0.735 0.01 221.423);
--secondary: oklch(0.168 0.004 334.947);
--secondary-foreground: oklch(0.727 0.016 334.91);
--accent: oklch(0.173 0.004 118.951);
--accent-foreground: oklch(0.744 0.015 118.918);
--destructive: oklch(0.675 0.174 37.395);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.17 0.002 221.435);
--chart-1: oklch(0.17 0.002 221.435);
--chart-2: oklch(0.168 0.004 334.947);
--chart-3: oklch(0.173 0.004 118.951);
--chart-4: oklch(0.202 0.006 335.026);
--chart-5: oklch(0.171 0.004 221.508);
}