Inability for shadcn/ui

Inability is a shadcn/ui theme built around a deep purple primary color (#3d2145) with muted light purple accents (#c7b8cc). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the deep purple primary (#3d2145) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#060307black
Foreground
#070208black
#fdfcfdwhite
Card
#fbf8fcghostwhite
#060307black
Card foreground
#070208black
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#060307black
Popover foreground
#070208black
#fdfcfdwhite
Primary
#3d2145darkslategray
#3d2145darkslategray
Primary foreground
#d6badethistle
#d6badethistle
Secondary
#d9d2dalightgrey
#2e272fdarkslategray
Secondary foreground
#413743darkslategray
#c7bfcasilver
Muted
#e2dee3gainsboro
#201c21black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#c7b8ccsilver
#3f3243darkslategray
Accent foreground
#2c222fdarkslategray
#d7cedalightgrey
Destructive
#5e2508maroon
#e75a13chocolate
Destructive foreground
#f7bea1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3d2145darkslategray
#3d2145darkslategray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button7.95:1AAA
Secondary button7.65:1AAA
Muted text4.66:1AA
Accent8.10:1AAA
Destructive7.36:1AAA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.95:1AAA
Secondary button8.08:1AAA
Muted text6.25:1AA
Accent7.81:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 318.889);
  --foreground: oklch(0.106 0.023 320.716);
  --muted: oklch(0.905 0.007 318.888);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.983 0.006 318.889);
  --popover-foreground: oklch(0.106 0.023 320.716);
  --card: oklch(0.983 0.006 318.889);
  --card-foreground: oklch(0.106 0.023 320.716);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.301 0.073 318.661);
  --primary-foreground: oklch(0.824 0.059 318.863);
  --secondary: oklch(0.872 0.013 318.885);
  --secondary-foreground: oklch(0.352 0.025 318.864);
  --accent: oklch(0.801 0.032 318.876);
  --accent-foreground: oklch(0.271 0.028 318.847);
  --destructive: oklch(0.343 0.093 43.25);
  --destructive-foreground: oklch(0.845 0.078 47.782);
  --ring: oklch(0.301 0.073 318.661);
  --chart-1: oklch(0.301 0.073 318.661);
  --chart-2: oklch(0.872 0.013 318.885);
  --chart-3: oklch(0.801 0.032 318.876);
  --chart-4: oklch(0.896 0.011 318.886);
  --chart-5: oklch(0.301 0.079 318.612);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.015 320.046);
  --foreground: oklch(0.992 0.001 318.89);
  --muted: oklch(0.234 0.01 318.876);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.11 0.015 320.046);
  --popover-foreground: oklch(0.992 0.001 318.89);
  --card: oklch(0.11 0.015 320.046);
  --card-foreground: oklch(0.992 0.001 318.89);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.301 0.073 318.661);
  --primary-foreground: oklch(0.824 0.059 318.863);
  --secondary: oklch(0.284 0.016 318.869);
  --secondary-foreground: oklch(0.815 0.017 318.883);
  --accent: oklch(0.34 0.033 318.85);
  --accent-foreground: oklch(0.861 0.019 318.883);
  --destructive: oklch(0.644 0.19 41.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.301 0.073 318.661);
  --chart-1: oklch(0.301 0.073 318.661);
  --chart-2: oklch(0.284 0.016 318.869);
  --chart-3: oklch(0.34 0.033 318.85);
  --chart-4: oklch(0.314 0.019 318.868);
  --chart-5: oklch(0.301 0.079 318.612);
}