Inability for shadcn/ui

Inability is a shadcn/ui theme built around a deep violet primary color (#4f1467) with deep purple accents (#671455). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#4f1467) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#060208black
#faf9fasnow
Card
#fbf7fdghostwhite
#030303black
Card foreground
#030104black
#fdfcfdwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#060208black
#faf9fasnow
Primary
#4f1467indigo
#4f1467indigo
Primary foreground
#e2baf2thistle
#e2baf2thistle
Secondary
#261467midnightblue
#261467midnightblue
Secondary foreground
#c6baf2lightsteelblue
#c6baf2lightsteelblue
Muted
#ecebeflavender
#111014black
Muted foreground
#57526bdimgray
#9a94addarkgray
Accent
#671455purple
#671455purple
Accent foreground
#f2bae6thistle
#f2bae6thistle
Destructive
#dd5608chocolate
#f77326tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f1467indigo
#4f1467indigo

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.62:1AAA
Primary button7.70:1AAA
Secondary button8.52:1AAA
Muted text6.28:1AA
Accent7.18:1AAA
Destructive3.86:1AA Large
Dark mode
Text on background19.99:1AAA
Text on card20.20:1AAA
Primary button7.70:1AAA
Secondary button8.52:1AAA
Muted text6.51:1AA
Accent7.18:1AAA
Destructive7.43:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 316.596);
  --foreground: oklch(0.104 0.025 318.694);
  --muted: oklch(0.943 0.005 296.237);
  --muted-foreground: oklch(0.454 0.04 294.686);
  --popover: oklch(0.99 0.004 316.596);
  --popover-foreground: oklch(0.104 0.025 318.694);
  --card: oklch(0.981 0.009 316.582);
  --card-foreground: oklch(0.083 0.02 318.694);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.333 0.14 314.104);
  --primary-foreground: oklch(0.843 0.087 316.304);
  --secondary: oklch(0.28 0.134 283.436);
  --secondary-foreground: oklch(0.819 0.078 294.549);
  --accent: oklch(0.36 0.136 338.512);
  --accent-foreground: oklch(0.853 0.085 334.082);
  --destructive: oklch(0.624 0.184 42.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.333 0.14 314.104);
  --chart-1: oklch(0.333 0.14 314.104);
  --chart-2: oklch(0.28 0.134 283.436);
  --chart-3: oklch(0.36 0.136 338.512);
  --chart-4: oklch(0.302 0.147 283.024);
  --chart-5: oklch(0.334 0.144 313.902);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 316.604);
  --muted: oklch(0.176 0.007 295.562);
  --muted-foreground: oklch(0.68 0.036 295.353);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 316.604);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 316.606);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.333 0.14 314.104);
  --primary-foreground: oklch(0.843 0.087 316.304);
  --secondary: oklch(0.28 0.134 283.436);
  --secondary-foreground: oklch(0.819 0.078 294.549);
  --accent: oklch(0.36 0.136 338.512);
  --accent-foreground: oklch(0.853 0.085 334.082);
  --destructive: oklch(0.703 0.182 45.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.333 0.14 314.104);
  --chart-1: oklch(0.333 0.14 314.104);
  --chart-2: oklch(0.28 0.134 283.436);
  --chart-3: oklch(0.36 0.136 338.512);
  --chart-4: oklch(0.302 0.147 283.024);
  --chart-5: oklch(0.334 0.144 313.902);
}