Incompatible for shadcn/ui

Incompatible is a shadcn/ui theme built around an indigo primary color (#4137b3) with violet accents (#8037b3). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the indigo primary (#4137b3) on an indigo-tinted background (#07070e).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#07070eblack
Foreground
#030208black
#fcfcfdwhite
Card
#f7f7fdghostwhite
#07070eblack
Card foreground
#030208black
#fcfcfdwhite
Popover
#f7f7fdghostwhite
#07070eblack
Popover foreground
#030208black
#fcfcfdwhite
Primary
#4137b3darkslateblue
#4137b3darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#376bb3steelblue
#376bb3steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2e5e9gainsboro
#16191dblack
Muted foreground
#494a4bdarkslategray
#b4b5b6silver
Accent
#8037b3darkorchid
#8037b3darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#771b09maroon
#ef4a2atomato
Destructive foreground
#fac3b8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4137b3darkslateblue
#4137b3darkslateblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button8.63:1AAA
Secondary button5.35:1AA
Muted text7.02:1AAA
Accent6.73:1AA
Destructive6.98:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button8.63:1AAA
Secondary button5.35:1AA
Muted text8.58:1AAA
Accent6.73:1AA
Destructive3.68:1AA Large

CSS variables

Paste this into your globals.css to use Incompatible in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 290.09);
  --foreground: oklch(0.098 0.019 287.631);
  --muted: oklch(0.921 0.006 256.678);
  --muted-foreground: oklch(0.408 0.002 256.668);
  --popover: oklch(0.978 0.008 290.09);
  --popover-foreground: oklch(0.098 0.019 287.631);
  --card: oklch(0.978 0.008 290.09);
  --card-foreground: oklch(0.098 0.019 287.631);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.433 0.188 278.792);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.528 0.127 257.246);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.19 307.546);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.376 0.129 32.924);
  --destructive-foreground: oklch(0.863 0.065 31.385);
  --ring: oklch(0.433 0.188 278.792);
  --chart-1: oklch(0.433 0.188 278.792);
  --chart-2: oklch(0.528 0.127 257.246);
  --chart-3: oklch(0.496 0.19 307.546);
  --chart-4: oklch(0.553 0.134 257.256);
  --chart-5: oklch(0.429 0.197 277.814);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.016 288.497);
  --foreground: oklch(0.992 0.001 290.227);
  --muted: oklch(0.212 0.009 256.774);
  --muted-foreground: oklch(0.773 0.001 256.659);
  --popover: oklch(0.132 0.016 288.497);
  --popover-foreground: oklch(0.992 0.001 290.227);
  --card: oklch(0.132 0.016 288.497);
  --card-foreground: oklch(0.992 0.001 290.227);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.433 0.188 278.792);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.528 0.127 257.246);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.496 0.19 307.546);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.206 33.142);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.433 0.188 278.792);
  --chart-1: oklch(0.433 0.188 278.792);
  --chart-2: oklch(0.528 0.127 257.246);
  --chart-3: oklch(0.496 0.19 307.546);
  --chart-4: oklch(0.553 0.134 257.256);
  --chart-5: oklch(0.429 0.197 277.814);
}