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.
green is a shadcn/ui theme built around a vivid deep teal primary color (#044846) with vivid deep red accents (#480406). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#044846) on a teal-tinted background (#060f0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #060f0eblack |
| Foreground | #031211black | #fcfdfdwhite |
| Card | #fbfefewhite | #060f0eblack |
| Card foreground | #031211black | #fcfdfdwhite |
| Popover | #fbfefewhite | #060f0eblack |
| Popover foreground | #031211black | #fcfdfdwhite |
| Primary | #044846darkslategray | #044846darkslategray |
| Primary foreground | #26f2ecturquoise | #26f2ecturquoise |
| Secondary | #480406maroon | #480406maroon |
| Secondary foreground | #f8878alightcoral | #f8878alightcoral |
| Muted | #eadcddgainsboro | #231516black |
| Muted foreground | #6f5858dimgray | #a79090rosybrown |
| Accent | #480406maroon | #480406maroon |
| Accent foreground | #f8878alightcoral | #f8878alightcoral |
| Destructive | #971311darkred | #ea413etomato |
| Destructive foreground | #fbdfdfmistyrose | #ffffffwhite |
| Border | #e2e9e9lavender | #1d2525black |
| Input | #e2e9e9lavender | #1d2525black |
| Ring | #044846darkslategray | #044846darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 4.91:1 | AA |
| Accent | 6.79:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 6.79:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 194.737);
--foreground: oklch(0.166 0.023 192.6);
--muted: oklch(0.906 0.015 15.098);
--muted-foreground: oklch(0.483 0.032 16.064);
--popover: oklch(0.994 0.003 194.737);
--popover-foreground: oklch(0.166 0.023 192.6);
--card: oklch(0.994 0.003 194.737);
--card-foreground: oklch(0.166 0.023 192.6);
--border: oklch(0.928 0.007 194.647);
--input: oklch(0.928 0.007 194.647);
--primary: oklch(0.365 0.061 191.146);
--primary-foreground: oklch(0.871 0.145 191.105);
--secondary: oklch(0.258 0.098 26.062);
--secondary-foreground: oklch(0.747 0.138 18.847);
--accent: oklch(0.258 0.098 26.062);
--accent-foreground: oklch(0.747 0.138 18.847);
--destructive: oklch(0.435 0.166 28.251);
--destructive-foreground: oklch(0.928 0.031 18.892);
--ring: oklch(0.365 0.061 191.146);
--chart-1: oklch(0.365 0.061 191.146);
--chart-2: oklch(0.258 0.098 26.062);
--chart-3: oklch(0.258 0.098 26.062);
--chart-4: oklch(0.291 0.112 26.564);
--chart-5: oklch(0.368 0.062 191.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.014 193.31);
--foreground: oklch(0.994 0.002 194.756);
--muted: oklch(0.215 0.022 16.859);
--muted-foreground: oklch(0.674 0.029 15.608);
--popover: oklch(0.157 0.014 193.31);
--popover-foreground: oklch(0.994 0.002 194.756);
--card: oklch(0.157 0.014 193.31);
--card-foreground: oklch(0.994 0.002 194.756);
--border: oklch(0.258 0.012 193.917);
--input: oklch(0.258 0.012 193.917);
--primary: oklch(0.365 0.061 191.146);
--primary-foreground: oklch(0.871 0.145 191.105);
--secondary: oklch(0.258 0.098 26.062);
--secondary-foreground: oklch(0.747 0.138 18.847);
--accent: oklch(0.258 0.098 26.062);
--accent-foreground: oklch(0.747 0.138 18.847);
--destructive: oklch(0.624 0.206 26.243);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.365 0.061 191.146);
--chart-1: oklch(0.365 0.061 191.146);
--chart-2: oklch(0.258 0.098 26.062);
--chart-3: oklch(0.258 0.098 26.062);
--chart-4: oklch(0.291 0.112 26.564);
--chart-5: oklch(0.368 0.062 191.083);
}