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.
Cultivated is a shadcn/ui theme built around a light blue primary color (#d1e1f5) with muted light blue accents (#dbdde1). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light blue primary (#d1e1f5) on a blue-tinted background (#04070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #04070bblack |
| Foreground | #040c15black | #f5f7fawhitesmoke |
| Card | #fbfcfdwhite | #04070bblack |
| Card foreground | #040c15black | #f5f7fawhitesmoke |
| Popover | #fbfcfdwhite | #04070bblack |
| Popover foreground | #040c15black | #f5f7fawhitesmoke |
| Primary | #d1e1f5lavender | #d1e1f5lavender |
| Primary foreground | #1a447amidnightblue | #1a447amidnightblue |
| Secondary | #dbdde1gainsboro | #202327darkslategray |
| Secondary foreground | #3f444adarkslategray | #b7bcc3silver |
| Muted | #eef2f6whitesmoke | #090c11black |
| Muted foreground | #3d4652darkslategray | #adb6c2silver |
| Accent | #dbdde1gainsboro | #202327darkslategray |
| Accent foreground | #3f444adarkslategray | #b7bcc3silver |
| Destructive | #651106maroon | #e6280forangered |
| Destructive foreground | #f9aea4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1e1f5lavender | #d1e1f5lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Cultivated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 254.964);
--foreground: oklch(0.15 0.024 251.947);
--muted: oklch(0.959 0.007 254.995);
--muted-foreground: oklch(0.391 0.024 255.203);
--popover: oklch(0.992 0.002 254.964);
--popover-foreground: oklch(0.15 0.024 251.947);
--card: oklch(0.992 0.002 254.964);
--card-foreground: oklch(0.15 0.024 251.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.903 0.033 255.121);
--primary-foreground: oklch(0.387 0.104 256.441);
--secondary: oklch(0.898 0.005 254.983);
--secondary-foreground: oklch(0.385 0.012 255.104);
--accent: oklch(0.898 0.005 254.983);
--accent-foreground: oklch(0.385 0.012 255.104);
--destructive: oklch(0.331 0.118 31.188);
--destructive-foreground: oklch(0.82 0.09 27.557);
--ring: oklch(0.903 0.033 255.121);
--chart-1: oklch(0.903 0.033 255.121);
--chart-2: oklch(0.898 0.005 254.983);
--chart-3: oklch(0.898 0.005 254.983);
--chart-4: oklch(0.922 0.004 254.975);
--chart-5: oklch(0.902 0.035 255.127);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.012 248.799);
--foreground: oklch(0.975 0.004 254.979);
--muted: oklch(0.154 0.012 254.882);
--muted-foreground: oklch(0.773 0.02 255.08);
--popover: oklch(0.127 0.012 248.799);
--popover-foreground: oklch(0.975 0.004 254.979);
--card: oklch(0.127 0.012 248.799);
--card-foreground: oklch(0.975 0.004 254.979);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.903 0.033 255.121);
--primary-foreground: oklch(0.387 0.104 256.441);
--secondary: oklch(0.256 0.008 255.101);
--secondary-foreground: oklch(0.793 0.011 255.027);
--accent: oklch(0.256 0.008 255.101);
--accent-foreground: oklch(0.793 0.011 255.027);
--destructive: oklch(0.595 0.225 30.884);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.033 255.121);
--chart-1: oklch(0.903 0.033 255.121);
--chart-2: oklch(0.256 0.008 255.101);
--chart-3: oklch(0.256 0.008 255.101);
--chart-4: oklch(0.287 0.009 255.107);
--chart-5: oklch(0.902 0.035 255.127);
}