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.
Hopeful is a shadcn/ui theme built around a light green primary color (#daf1e0) with muted light green accents (#e7eee9). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the light green primary (#daf1e0) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #020302black |
| Foreground | #041007black | #f9fbf9mintcream |
| Card | #f8fcf9mintcream | #020302black |
| Card foreground | #041007black | #f9fbf9mintcream |
| Popover | #f8fcf9mintcream | #020302black |
| Popover foreground | #041007black | #f9fbf9mintcream |
| Primary | #daf1e0gainsboro | #daf1e0gainsboro |
| Primary foreground | #0e2514black | #0e2514black |
| Secondary | #e7eee9lavender | #161d18black |
| Secondary foreground | #19241cblack | #a9bcaedarkgray |
| Muted | #e2e9e4gainsboro | #161d18black |
| Muted foreground | #48514adarkslategray | #aeb7b0darkgray |
| Accent | #e7eee9lavender | #161d18black |
| Accent foreground | #19241cblack | #a9bcaedarkgray |
| Destructive | #642307maroon | #e04e10chocolate |
| Destructive foreground | #f9bea4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #daf1e0gainsboro | #daf1e0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 13.67:1 | AAA |
| Secondary button | 13.59:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 13.59:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 13.67:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Hopeful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 154.408);
--foreground: oklch(0.158 0.027 152.899);
--muted: oklch(0.927 0.009 154.358);
--muted-foreground: oklch(0.425 0.016 153.841);
--popover: oklch(0.987 0.007 154.408);
--popover-foreground: oklch(0.158 0.027 152.899);
--card: oklch(0.987 0.007 154.408);
--card-foreground: oklch(0.158 0.027 152.899);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.937 0.034 153.862);
--primary-foreground: oklch(0.241 0.045 150.466);
--secondary: oklch(0.943 0.01 154.339);
--secondary-foreground: oklch(0.247 0.021 152.946);
--accent: oklch(0.943 0.01 154.339);
--accent-foreground: oklch(0.247 0.021 152.946);
--destructive: oklch(0.351 0.101 40.481);
--destructive-foreground: oklch(0.848 0.077 44.275);
--ring: oklch(0.937 0.034 153.862);
--chart-1: oklch(0.937 0.034 153.862);
--chart-2: oklch(0.943 0.01 154.339);
--chart-3: oklch(0.943 0.01 154.339);
--chart-4: oklch(0.964 0.006 154.413);
--chart-5: oklch(0.938 0.037 153.819);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 154.138);
--foreground: oklch(0.986 0.003 154.465);
--muted: oklch(0.221 0.013 153.478);
--muted-foreground: oklch(0.771 0.014 154.206);
--popover: oklch(0.096 0.01 154.138);
--popover-foreground: oklch(0.986 0.003 154.465);
--card: oklch(0.096 0.01 154.138);
--card-foreground: oklch(0.986 0.003 154.465);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.937 0.034 153.862);
--primary-foreground: oklch(0.241 0.045 150.466);
--secondary: oklch(0.221 0.014 153.391);
--secondary-foreground: oklch(0.777 0.03 153.829);
--accent: oklch(0.221 0.014 153.391);
--accent-foreground: oklch(0.777 0.03 153.829);
--destructive: oklch(0.619 0.192 38.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.937 0.034 153.862);
--chart-1: oklch(0.937 0.034 153.862);
--chart-2: oklch(0.221 0.014 153.391);
--chart-3: oklch(0.221 0.014 153.391);
--chart-4: oklch(0.256 0.017 153.289);
--chart-5: oklch(0.938 0.037 153.819);
}