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.
Cradle is a shadcn/ui theme built around a muted deep green primary color (#1f2820) with muted deep teal accents (#1f2824). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted deep green primary (#1f2820) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fcf8mintcream | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1f2820black | #1f2820black |
| Primary foreground | #b4c5b5silver | #b4c5b5silver |
| Secondary | #23281fblack | #23281fblack |
| Secondary foreground | #bcc5b4silver | #bcc5b4silver |
| Muted | #f2f6efwhitesmoke | #0c1009black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #1f2824darkslategray | #1f2824darkslategray |
| Accent foreground | #b4c5besilver | #b4c5besilver |
| Destructive | #bd0805firebrick | #f91e1ared |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f2820black | #1f2820black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.35:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 8.38:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Cradle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 146.965);
--foreground: oklch(0 0 0);
--muted: oklch(0.967 0.01 130.534);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.987 0.008 146.965);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.008 146.965);
--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.266 0.021 146.28);
--primary-foreground: oklch(0.807 0.029 146.692);
--secondary: oklch(0.27 0.018 131.098);
--secondary-foreground: oklch(0.812 0.026 130.741);
--accent: oklch(0.268 0.015 166.145);
--accent-foreground: oklch(0.809 0.022 167.053);
--destructive: oklch(0.504 0.203 29.184);
--destructive-foreground: oklch(0.978 0.01 18.523);
--ring: oklch(0.266 0.021 146.28);
--chart-1: oklch(0.266 0.021 146.28);
--chart-2: oklch(0.27 0.018 131.098);
--chart-3: oklch(0.268 0.015 166.145);
--chart-4: oklch(0.303 0.022 131.132);
--chart-5: oklch(0.268 0.025 146.107);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.015 131.309);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.266 0.021 146.28);
--primary-foreground: oklch(0.807 0.029 146.692);
--secondary: oklch(0.27 0.018 131.098);
--secondary-foreground: oklch(0.812 0.026 130.741);
--accent: oklch(0.268 0.015 166.145);
--accent-foreground: oklch(0.809 0.022 167.053);
--destructive: oklch(0.625 0.245 28.647);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.266 0.021 146.28);
--chart-1: oklch(0.266 0.021 146.28);
--chart-2: oklch(0.27 0.018 131.098);
--chart-3: oklch(0.268 0.015 166.145);
--chart-4: oklch(0.303 0.022 131.132);
--chart-5: oklch(0.268 0.025 146.107);
}