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.
Thermostat is a shadcn/ui theme built around a vivid deep purple primary color (#450841) with muted light purple accents (#dcd0dc). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#450841) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0c040bblack |
| Foreground | #120211black | #ffffffwhite |
| Card | #fefbfewhite | #0c040bblack |
| Card foreground | #120211black | #ffffffwhite |
| Popover | #fefbfewhite | #0c040bblack |
| Popover foreground | #120211black | #ffffffwhite |
| Primary | #450841indigo | #450841indigo |
| Primary foreground | #f28cebviolet | #f28cebviolet |
| Secondary | #dcd0dcgainsboro | #1d1b1dblack |
| Secondary foreground | #463445darkslategray | #b8b2b8silver |
| Muted | #e8cfe6gainsboro | #30172fdarkslategray |
| Muted foreground | #443c43darkslategray | #c3bbc3silver |
| Accent | #dcd0dcgainsboro | #1d1b1dblack |
| Accent foreground | #463445darkslategray | #b8b2b8silver |
| Destructive | #b73206firebrick | #f96939tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #450841indigo | #450841indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Thermostat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 327.601);
--foreground: oklch(0.136 0.046 330.022);
--muted: oklch(0.881 0.042 327.999);
--muted-foreground: oklch(0.366 0.016 327.963);
--popover: oklch(0.991 0.006 327.601);
--popover-foreground: oklch(0.136 0.046 330.022);
--card: oklch(0.991 0.006 327.601);
--card-foreground: oklch(0.136 0.046 330.022);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.277 0.113 331.213);
--primary-foreground: oklch(0.78 0.17 329.494);
--secondary: oklch(0.871 0.02 327.774);
--secondary-foreground: oklch(0.352 0.038 328.559);
--accent: oklch(0.871 0.02 327.774);
--accent-foreground: oklch(0.352 0.038 328.559);
--destructive: oklch(0.518 0.176 35.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.113 331.213);
--chart-1: oklch(0.277 0.113 331.213);
--chart-2: oklch(0.871 0.02 327.774);
--chart-3: oklch(0.871 0.02 327.774);
--chart-4: oklch(0.896 0.016 327.726);
--chart-5: oklch(0.279 0.116 331.292);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.027 328.98);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.055 329.513);
--muted-foreground: oklch(0.802 0.013 327.705);
--popover: oklch(0.125 0.027 328.98);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.027 328.98);
--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.277 0.113 331.213);
--primary-foreground: oklch(0.78 0.17 329.494);
--secondary: oklch(0.225 0.005 327.773);
--secondary-foreground: oklch(0.77 0.01 327.675);
--accent: oklch(0.225 0.005 327.773);
--accent-foreground: oklch(0.77 0.01 327.675);
--destructive: oklch(0.693 0.187 38.271);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.277 0.113 331.213);
--chart-1: oklch(0.277 0.113 331.213);
--chart-2: oklch(0.225 0.005 327.773);
--chart-3: oklch(0.225 0.005 327.773);
--chart-4: oklch(0.257 0.006 327.79);
--chart-5: oklch(0.279 0.116 331.292);
}