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.
Live is a shadcn/ui theme built around a neutral gray primary color (#443b3b) with neutral gray accents (#3b3b44). The light mode uses a neutral background (#fcf7f7). Dark mode keeps the neutral gray primary (#443b3b) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7f7snow | #040101black |
| Foreground | #160404black | #fdfbfbsnow |
| Card | #fcf7f7snow | #040101black |
| Card foreground | #160404black | #fdfbfbsnow |
| Popover | #fcf7f7snow | #040101black |
| Popover foreground | #160404black | #fdfbfbsnow |
| Primary | #443b3bdarkslategray | #443b3bdarkslategray |
| Primary foreground | #dbd6d6gainsboro | #dbd6d6gainsboro |
| Secondary | #3b443bdarkslategray | #3b443bdarkslategray |
| Secondary foreground | #d6dbd6gainsboro | #d6dbd6gainsboro |
| Muted | #dae1dagainsboro | #1e251eblack |
| Muted foreground | #4b534bdarkslategray | #acb4acdarkgray |
| Accent | #3b3b44darkslategray | #3b3b44darkslategray |
| Accent foreground | #d6d6dbgainsboro | #d6d6dbgainsboro |
| Destructive | #9d3e07saddlebrown | #f67328tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #443b3bdarkslategray | #443b3bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 7.41:1 | AAA |
Paste this into your globals.css to use Live in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 17.248);
--foreground: oklch(0.141 0.037 23.114);
--muted: oklch(0.904 0.013 145.471);
--muted-foreground: oklch(0.433 0.016 145.286);
--popover: oklch(0.981 0.005 17.248);
--popover-foreground: oklch(0.141 0.037 23.114);
--card: oklch(0.981 0.005 17.248);
--card-foreground: oklch(0.141 0.037 23.114);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.012 17.742);
--primary-foreground: oklch(0.881 0.006 17.269);
--secondary: oklch(0.376 0.019 145.185);
--secondary-foreground: oklch(0.887 0.009 145.497);
--accent: oklch(0.357 0.015 285.598);
--accent-foreground: oklch(0.878 0.007 286.249);
--destructive: oklch(0.487 0.139 43.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.012 17.742);
--chart-1: oklch(0.363 0.012 17.742);
--chart-2: oklch(0.376 0.019 145.185);
--chart-3: oklch(0.357 0.015 285.598);
--chart-4: oklch(0.406 0.021 145.177);
--chart-5: oklch(0.36 0.018 18.023);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.014 20.589);
--foreground: oklch(0.991 0.002 17.192);
--muted: oklch(0.254 0.017 145.05);
--muted-foreground: oklch(0.761 0.014 145.434);
--popover: oklch(0.082 0.014 20.589);
--popover-foreground: oklch(0.991 0.002 17.192);
--card: oklch(0.082 0.014 20.589);
--card-foreground: oklch(0.991 0.002 17.192);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.363 0.012 17.742);
--primary-foreground: oklch(0.881 0.006 17.269);
--secondary: oklch(0.376 0.019 145.185);
--secondary-foreground: oklch(0.887 0.009 145.497);
--accent: oklch(0.357 0.015 285.598);
--accent-foreground: oklch(0.878 0.007 286.249);
--destructive: oklch(0.702 0.18 46.044);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.363 0.012 17.742);
--chart-1: oklch(0.363 0.012 17.742);
--chart-2: oklch(0.376 0.019 145.185);
--chart-3: oklch(0.357 0.015 285.598);
--chart-4: oklch(0.406 0.021 145.177);
--chart-5: oklch(0.36 0.018 18.023);
}