Improbable for shadcn/ui

Improbable is a shadcn/ui theme built around a near-black primary color (#010104) with muted light indigo accents (#e0dfe7). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the near-black primary (#010104) on an indigo-tinted background (#04030c).

Color palette

TokenLightDark
Background
#f8f7fdghostwhite
#04030cblack
Foreground
#010104black
#ffffffwhite
Card
#f4f3fbwhitesmoke
#050410black
Card foreground
#000000black
#ffffffwhite
Popover
#f8f7fdghostwhite
#04030cblack
Popover foreground
#010104black
#ffffffwhite
Primary
#010104black
#010104black
Primary foreground
#bab6e7lightsteelblue
#bab6e7lightsteelblue
Secondary
#e0dfe7gainsboro
#18181bblack
Secondary foreground
#424054darkslategray
#afafb6darkgray
Muted
#efeff6whitesmoke
#0a0910black
Muted foreground
#4e4e56darkslategray
#aaa9b1darkgray
Accent
#e0dfe7gainsboro
#18181bblack
Accent foreground
#424054darkslategray
#afafb6darkgray
Destructive
#a43e0esaddlebrown
#d34f12chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010104black
#010104black

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.12:1AAA
Primary button10.83:1AAA
Secondary button7.59:1AAA
Muted text7.18:1AAA
Accent7.59:1AAA
Destructive6.41:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.32:1AAA
Primary button10.83:1AAA
Secondary button8.10:1AAA
Muted text8.51:1AAA
Accent8.10:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 290.114);
  --foreground: oklch(0.078 0.015 287.631);
  --muted: oklch(0.953 0.01 290.051);
  --muted-foreground: oklch(0.426 0.013 289.648);
  --popover: oklch(0.979 0.007 290.114);
  --popover-foreground: oklch(0.078 0.015 287.631);
  --card: oklch(0.968 0.01 290.044);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.078 0.015 287.708);
  --primary-foreground: oklch(0.797 0.068 288.566);
  --secondary: oklch(0.907 0.01 290.042);
  --secondary-foreground: oklch(0.382 0.033 288.576);
  --accent: oklch(0.907 0.01 290.042);
  --accent-foreground: oklch(0.382 0.033 288.576);
  --destructive: oklch(0.5 0.146 40.934);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.078 0.015 287.708);
  --chart-1: oklch(0.078 0.015 287.708);
  --chart-2: oklch(0.907 0.01 290.042);
  --chart-3: oklch(0.907 0.01 290.042);
  --chart-4: oklch(0.933 0.007 290.103);
  --chart-5: oklch(0.077 0.016 287.473);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.025 287.035);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.145 0.016 288.186);
  --muted-foreground: oklch(0.739 0.012 289.949);
  --popover: oklch(0.109 0.025 287.035);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.029 286.457);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.078 0.015 287.708);
  --primary-foreground: oklch(0.797 0.068 288.566);
  --secondary: oklch(0.211 0.005 289.8);
  --secondary-foreground: oklch(0.756 0.011 289.976);
  --accent: oklch(0.211 0.005 289.8);
  --accent-foreground: oklch(0.756 0.011 289.976);
  --destructive: oklch(0.599 0.178 40.536);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.078 0.015 287.708);
  --chart-1: oklch(0.078 0.015 287.708);
  --chart-2: oklch(0.211 0.005 289.8);
  --chart-3: oklch(0.211 0.005 289.8);
  --chart-4: oklch(0.243 0.006 289.758);
  --chart-5: oklch(0.077 0.016 287.473);
}