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.
Incompatible is a shadcn/ui theme built around a teal primary color (#2d9f75) with muted light teal accents (#c3d5ce). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the teal primary (#2d9f75) on a teal-tinted background (#040b09).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #040b09black |
| Foreground | #04110cblack | #ffffffwhite |
| Card | #f4faf8mintcream | #060f0bblack |
| Card foreground | #030c09black | #ffffffwhite |
| Popover | #f4faf8mintcream | #060f0bblack |
| Popover foreground | #030c09black | #ffffffwhite |
| Primary | #2d9f75mediumseagreen | #2d9f75mediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c3d5celightgrey | #1b2320black |
| Secondary foreground | #2a3c35darkslategray | #aec1basilver |
| Muted | #d5ebe3gainsboro | #142a22black |
| Muted foreground | #4a645adimgray | #9bb5acdarkgray |
| Accent | #c3d5celightgrey | #1b2320black |
| Accent foreground | #2a3c35darkslategray | #aec1basilver |
| Destructive | #a51d0dfirebrick | #ef4f3etomato |
| Destructive foreground | #fdeae7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d9f75mediumseagreen | #2d9f75mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.60:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 3.31:1 | AA Large |
| Secondary button | 7.65:1 | AAA |
| Muted text | 5.17:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 3.31:1 | AA Large |
| Secondary button | 8.55:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 8.55:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Incompatible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 172.436);
--foreground: oklch(0.161 0.022 169.921);
--muted: oklch(0.923 0.026 171.746);
--muted-foreground: oklch(0.478 0.035 170.271);
--popover: oklch(0.981 0.007 172.364);
--popover-foreground: oklch(0.144 0.019 172.231);
--card: oklch(0.981 0.007 172.364);
--card-foreground: oklch(0.144 0.019 172.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.629 0.119 163.99);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.858 0.022 171.82);
--secondary-foreground: oklch(0.339 0.026 170.058);
--accent: oklch(0.858 0.022 171.82);
--accent-foreground: oklch(0.339 0.026 170.058);
--destructive: oklch(0.467 0.173 30.52);
--destructive-foreground: oklch(0.951 0.022 25.189);
--ring: oklch(0.629 0.119 163.99);
--chart-1: oklch(0.629 0.119 163.99);
--chart-2: oklch(0.858 0.022 171.82);
--chart-3: oklch(0.858 0.022 171.82);
--chart-4: oklch(0.879 0.018 171.954);
--chart-5: oklch(0.637 0.124 163.555);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 172.624);
--foreground: oklch(1 0 180);
--muted: oklch(0.262 0.032 168.196);
--muted-foreground: oklch(0.752 0.032 171.298);
--popover: oklch(0.156 0.017 170.588);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.017 170.588);
--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.629 0.119 163.99);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.245 0.013 170.981);
--secondary-foreground: oklch(0.794 0.022 171.733);
--accent: oklch(0.245 0.013 170.981);
--accent-foreground: oklch(0.794 0.022 171.733);
--destructive: oklch(0.648 0.199 29.771);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.119 163.99);
--chart-1: oklch(0.629 0.119 163.99);
--chart-2: oklch(0.245 0.013 170.981);
--chart-3: oklch(0.245 0.013 170.981);
--chart-4: oklch(0.279 0.015 170.875);
--chart-5: oklch(0.637 0.124 163.555);
}