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.
Mortality is a shadcn/ui theme built around a neutral gray primary color (#919797) with neutral gray accents (#979791). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the neutral gray primary (#919797) on a teal-tinted background (#070d0d).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #070d0dblack |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #f5f9faghostwhite | #091011black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbfbghostwhite | #070d0dblack |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #919797lightslategray | #919797lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #979197lightslategray | #979197lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0eaf0whitesmoke | #150f14black |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #979791darkgray | #979791darkgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #5c250amaroon | #e96a2bchocolate |
| Destructive foreground | #f5bea3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #919797lightslategray | #919797lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 4.85:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 7.38:1 | AAA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Mortality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 200.85);
--foreground: oklch(0.1 0.014 198.316);
--muted: oklch(0.944 0.009 327.13);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.987 0.003 200.85);
--popover-foreground: oklch(0.1 0.014 198.316);
--card: oklch(0.98 0.005 200.83);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.671 0.007 200.761);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.663 0.012 327.199);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.009 108.963);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.341 0.089 43.699);
--destructive-foreground: oklch(0.845 0.074 47.826);
--ring: oklch(0.671 0.007 200.761);
--chart-1: oklch(0.671 0.007 200.761);
--chart-2: oklch(0.663 0.012 327.199);
--chart-3: oklch(0.675 0.009 108.963);
--chart-4: oklch(0.688 0.011 327.181);
--chart-5: oklch(0.676 0.014 200.644);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.01 199.995);
--foreground: oklch(0.993 0.001 200.876);
--muted: oklch(0.178 0.014 327.751);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.153 0.01 199.995);
--popover-foreground: oklch(0.993 0.001 200.876);
--card: oklch(0.167 0.012 200.141);
--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.671 0.007 200.761);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.663 0.012 327.199);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.009 108.963);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.67 0.173 43.843);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.671 0.007 200.761);
--chart-1: oklch(0.671 0.007 200.761);
--chart-2: oklch(0.663 0.012 327.199);
--chart-3: oklch(0.675 0.009 108.963);
--chart-4: oklch(0.688 0.011 327.181);
--chart-5: oklch(0.676 0.014 200.644);
}