Inability for shadcn/ui

Inability is a shadcn/ui theme built around a muted teal primary color (#637976) with muted red accents (#796366). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted teal primary (#637976) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020403black
Foreground
#010908black
#fcfdfdwhite
Card
#fcfdfdwhite
#020403black
Card foreground
#010908black
#fcfdfdwhite
Popover
#fcfdfdwhite
#020403black
Popover foreground
#010908black
#fcfdfdwhite
Primary
#637976dimgray
#637976dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#796366dimgray
#796366dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efebeclinen
#141010black
Muted foreground
#5f5859dimgray
#a7a0a1darkgray
Accent
#796366dimgray
#796366dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#781407maroon
#f34b35tomato
Destructive foreground
#fbbfb7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#637976dimgray
#637976dimgray

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button4.66:1AA
Secondary button5.56:1AA
Muted text5.87:1AA
Accent5.56:1AA
Destructive6.92:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button4.66:1AA
Secondary button5.56:1AA
Muted text7.37:1AAA
Accent5.56:1AA
Destructive3.57: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.994 0.002 187.704);
  --foreground: oklch(0.128 0.018 187.088);
  --muted: oklch(0.944 0.004 7.86);
  --muted-foreground: oklch(0.468 0.01 8.251);
  --popover: oklch(0.994 0.002 187.704);
  --popover-foreground: oklch(0.128 0.018 187.088);
  --card: oklch(0.994 0.002 187.704);
  --card-foreground: oklch(0.128 0.018 187.088);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.556 0.026 186.558);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.029 9.08);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.521 0.029 9.08);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.373 0.136 31.092);
  --destructive-foreground: oklch(0.856 0.071 27.21);
  --ring: oklch(0.556 0.026 186.558);
  --chart-1: oklch(0.556 0.026 186.558);
  --chart-2: oklch(0.521 0.029 9.08);
  --chart-3: oklch(0.521 0.029 9.08);
  --chart-4: oklch(0.546 0.03 9.091);
  --chart-5: oklch(0.563 0.033 186.223);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 187.364);
  --foreground: oklch(0.993 0.001 187.734);
  --muted: oklch(0.178 0.007 8.657);
  --muted-foreground: oklch(0.711 0.009 8.046);
  --popover: oklch(0.097 0.008 187.364);
  --popover-foreground: oklch(0.993 0.001 187.734);
  --card: oklch(0.097 0.008 187.364);
  --card-foreground: oklch(0.993 0.001 187.734);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.556 0.026 186.558);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.521 0.029 9.08);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.521 0.029 9.08);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.208 30.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.556 0.026 186.558);
  --chart-1: oklch(0.556 0.026 186.558);
  --chart-2: oklch(0.521 0.029 9.08);
  --chart-3: oklch(0.521 0.029 9.08);
  --chart-4: oklch(0.546 0.03 9.091);
  --chart-5: oklch(0.563 0.033 186.223);
}