Incompatible is a shadcn/ui theme built around a blue primary color (#2a3b89) with violet accents (#482a89). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2a3b89) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020512black | #f8f9fbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #02040eblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020512black | #f8f9fbghostwhite |
| Primary | #2a3b89darkslateblue | #2a3b89darkslateblue |
| Primary foreground | #ebeef9lavender | #ebeef9lavender |
| Secondary | #2a6b89teal | #2a6b89teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dadfe2gainsboro | #1d2325black |
| Muted foreground | #464f53darkslategray | #acb5b9darkgray |
| Accent | #482a89darkslateblue | #482a89darkslateblue |
| Accent foreground | #f0ebf9lavender | #f0ebf9lavender |
| Destructive | #6a210bmaroon | #ea6239tomato |
| Destructive foreground | #f7c1b1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a3b89darkslateblue | #2a3b89darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 5.92:1 | AA |
| Muted text | 6.25:1 | AA |
| Accent | 9.14:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.93:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.68:1 | AAA |
| Secondary button | 5.92:1 | AA |
| Muted text | 7.64:1 | AAA |
| Accent | 9.14:1 | AAA |
| Destructive | 6.30:1 | AA |
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.12 0.034 265.419);
--muted: oklch(0.901 0.007 226.958);
--muted-foreground: oklch(0.421 0.014 227.315);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.12 0.034 265.419);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.108 0.029 264.689);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.387 0.13 269.753);
--primary-foreground: oklch(0.95 0.015 275.955);
--secondary: oklch(0.498 0.08 231.686);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.38 0.149 292.402);
--accent-foreground: oklch(0.949 0.019 300.445);
--destructive: oklch(0.36 0.109 36.58);
--destructive-foreground: oklch(0.854 0.066 37.595);
--ring: oklch(0.387 0.13 269.753);
--chart-1: oklch(0.387 0.13 269.753);
--chart-2: oklch(0.498 0.08 231.686);
--chart-3: oklch(0.38 0.149 292.402);
--chart-4: oklch(0.528 0.086 231.766);
--chart-5: oklch(0.384 0.137 269.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.003 276.119);
--muted: oklch(0.25 0.01 227.421);
--muted-foreground: oklch(0.767 0.012 227.059);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.003 276.119);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 276.143);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.387 0.13 269.753);
--primary-foreground: oklch(0.95 0.015 275.955);
--secondary: oklch(0.498 0.08 231.686);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.38 0.149 292.402);
--accent-foreground: oklch(0.949 0.019 300.445);
--destructive: oklch(0.662 0.178 37.253);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.387 0.13 269.753);
--chart-1: oklch(0.387 0.13 269.753);
--chart-2: oklch(0.498 0.08 231.686);
--chart-3: oklch(0.38 0.149 292.402);
--chart-4: oklch(0.528 0.086 231.766);
--chart-5: oklch(0.384 0.137 269.285);
}