Incompatible is a shadcn/ui theme built around a deep violet primary color (#1d0b28) with deep purple accents (#280b25). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#1d0b28) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08050ablack |
| Foreground | #060208black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0b060eblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #ffffffwhite | #08050ablack |
| Popover foreground | #060208black | #fdfcfdwhite |
| Primary | #1d0b28black | #1d0b28black |
| Primary foreground | #bd86dforchid | #bd86dforchid |
| Secondary | #0e0b28black | #0e0b28black |
| Secondary foreground | #9086dfmediumpurple | #9086dfmediumpurple |
| Muted | #e8e6f4lavender | #0d0b19black |
| Muted foreground | #3b384cdarkslategray | #b5b3c7silver |
| Accent | #280b25black | #280b25black |
| Accent foreground | #df86d5orchid | #df86d5orchid |
| Destructive | #622004maroon | #f7692btomato |
| Destructive foreground | #fbb99dlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d0b28black | #1d0b28black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 9.21:1 | AAA |
| Accent | 7.30:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 9.49:1 | AAA |
| Accent | 7.30:1 | AAA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Incompatible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.022 314.82);
--muted: oklch(0.931 0.018 291.408);
--muted-foreground: oklch(0.353 0.034 289.862);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.022 314.82);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.082 0.018 314.82);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.194 0.06 310.413);
--primary-foreground: oklch(0.707 0.138 311.593);
--secondary: oklch(0.174 0.058 283.846);
--secondary-foreground: oklch(0.667 0.129 287.697);
--accent: oklch(0.21 0.064 332.35);
--accent-foreground: oklch(0.74 0.146 331.254);
--destructive: oklch(0.343 0.103 40.235);
--destructive-foreground: oklch(0.84 0.087 44.192);
--ring: oklch(0.194 0.06 310.413);
--chart-1: oklch(0.194 0.06 310.413);
--chart-2: oklch(0.174 0.058 283.846);
--chart-3: oklch(0.21 0.064 332.35);
--chart-4: oklch(0.197 0.072 282.79);
--chart-5: oklch(0.193 0.063 310.226);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.017 314.145);
--foreground: oklch(0.992 0.001 312.978);
--muted: oklch(0.16 0.028 288.094);
--muted-foreground: oklch(0.774 0.028 291.086);
--popover: oklch(0.124 0.017 314.145);
--popover-foreground: oklch(0.992 0.001 312.978);
--card: oklch(0.136 0.019 312.967);
--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.194 0.06 310.413);
--primary-foreground: oklch(0.707 0.138 311.593);
--secondary: oklch(0.174 0.058 283.846);
--secondary-foreground: oklch(0.667 0.129 287.697);
--accent: oklch(0.21 0.064 332.35);
--accent-foreground: oklch(0.74 0.146 331.254);
--destructive: oklch(0.689 0.189 41.092);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.194 0.06 310.413);
--chart-1: oklch(0.194 0.06 310.413);
--chart-2: oklch(0.174 0.058 283.846);
--chart-3: oklch(0.21 0.064 332.35);
--chart-4: oklch(0.197 0.072 282.79);
--chart-5: oklch(0.193 0.063 310.226);
}