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.
New is a shadcn/ui theme built around a blue primary color (#93b1e1) with green accents (#b1e193). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the blue primary (#93b1e1) on a blue-tinted background (#06090f).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #06090fblack |
| Foreground | #020408black | #f6f7f9whitesmoke |
| Card | #f3f6fcaliceblue | #070b12black |
| Card foreground | #010204black | #f9fafbghostwhite |
| Popover | #f7f9fdghostwhite | #06090fblack |
| Popover foreground | #020408black | #f6f7f9whitesmoke |
| Primary | #93b1e1skyblue | #93b1e1skyblue |
| Primary foreground | #0e1d34midnightblue | #0e1d34midnightblue |
| Secondary | #e193b1plum | #e193b1plum |
| Secondary foreground | #340e1dblack | #340e1dblack |
| Muted | #f1eaeclinen | #150e11black |
| Muted foreground | #575254dimgray | #ada8aadarkgray |
| Accent | #b1e193lightgreen | #b1e193lightgreen |
| Accent foreground | #1d340edarkgreen | #1d340edarkgreen |
| Destructive | #a32300firebrick | #ff5324tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93b1e1skyblue | #93b1e1skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 9.09:1 | AAA |
| Destructive | 7.48:1 | AAA |
| Text on background | 18.59:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 9.09:1 | AAA |
| Destructive | 6.52:1 | AA |
Paste this into your globals.css to use New in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 259.94);
--foreground: oklch(0.109 0.013 252.276);
--muted: oklch(0.942 0.008 351.848);
--muted-foreground: oklch(0.443 0.007 352.056);
--popover: oklch(0.982 0.005 259.94);
--popover-foreground: oklch(0.109 0.013 252.276);
--card: oklch(0.973 0.008 259.942);
--card-foreground: oklch(0.086 0.01 252.276);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.756 0.078 259.788);
--primary-foreground: oklch(0.23 0.05 259.5);
--secondary: oklch(0.75 0.101 355.216);
--secondary-foreground: oklch(0.233 0.063 359.389);
--accent: oklch(0.858 0.116 134.05);
--accent-foreground: oklch(0.296 0.068 135.309);
--destructive: oklch(0.468 0.168 34.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.756 0.078 259.788);
--chart-1: oklch(0.756 0.078 259.788);
--chart-2: oklch(0.75 0.101 355.216);
--chart-3: oklch(0.858 0.116 134.05);
--chart-4: oklch(0.777 0.089 354.679);
--chart-5: oklch(0.754 0.082 259.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 255.954);
--foreground: oklch(0.976 0.002 259.936);
--muted: oklch(0.176 0.013 353.634);
--muted-foreground: oklch(0.737 0.006 351.838);
--popover: oklch(0.139 0.014 255.954);
--popover-foreground: oklch(0.976 0.002 259.936);
--card: oklch(0.15 0.017 258.449);
--card-foreground: oklch(0.984 0.001 259.935);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.756 0.078 259.788);
--primary-foreground: oklch(0.23 0.05 259.5);
--secondary: oklch(0.75 0.101 355.216);
--secondary-foreground: oklch(0.233 0.063 359.389);
--accent: oklch(0.858 0.116 134.05);
--accent-foreground: oklch(0.296 0.068 135.309);
--destructive: oklch(0.675 0.216 35.368);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.756 0.078 259.788);
--chart-1: oklch(0.756 0.078 259.788);
--chart-2: oklch(0.75 0.101 355.216);
--chart-3: oklch(0.858 0.116 134.05);
--chart-4: oklch(0.777 0.089 354.679);
--chart-5: oklch(0.754 0.082 259.771);
}