Decisive for shadcn/ui

Decisive is a shadcn/ui theme built around a near-black primary color (#121112) with near-black accents (#121211). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#121112) on a neutral background (#060308).

Color palette

TokenLightDark
Background
#ffffffwhite
#060308black
Foreground
#030104black
#fdfcfdwhite
Card
#fcfcfcsnow
#09040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#09040bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#121112black
#121112black
Primary foreground
#aca8addarkgray
#aca8addarkgray
Secondary
#121211black
#121211black
Secondary foreground
#aaada8darkgray
#aaada8darkgray
Muted
#dce3d9gainsboro
#1f261cblack
Muted foreground
#5f7057dimgray
#97a88fdarkseagreen
Accent
#121211black
#121211black
Accent foreground
#aaada8darkgray
#aaada8darkgray
Destructive
#80330asaddlebrown
#e85d11chocolate
Destructive foreground
#fad5c1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#121112black
#121112black

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button8.02:1AAA
Secondary button8.24:1AAA
Muted text4.06:1AA Large
Accent8.24:1AAA
Destructive6.40:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.31:1AAA
Primary button8.02:1AAA
Secondary button8.24:1AAA
Muted text6.13:1AA
Accent8.24:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.023 317.836);
  --muted: oklch(0.907 0.015 135.5);
  --muted-foreground: oklch(0.524 0.045 135.826);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.18 0.002 315.37);
  --primary-foreground: oklch(0.737 0.008 315.381);
  --secondary: oklch(0.183 0.002 135.485);
  --secondary-foreground: oklch(0.745 0.008 135.475);
  --accent: oklch(0.183 0.002 135.485);
  --accent-foreground: oklch(0.745 0.008 135.475);
  --destructive: oklch(0.424 0.117 43.603);
  --destructive-foreground: oklch(0.9 0.05 50.002);
  --ring: oklch(0.18 0.002 315.37);
  --chart-1: oklch(0.18 0.002 315.37);
  --chart-2: oklch(0.183 0.002 135.485);
  --chart-3: oklch(0.183 0.002 135.485);
  --chart-4: oklch(0.217 0.003 135.494);
  --chart-5: oklch(0.179 0.005 315.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.02 317.051);
  --foreground: oklch(0.992 0.001 315.422);
  --muted: oklch(0.259 0.021 135.795);
  --muted-foreground: oklch(0.712 0.042 135.691);
  --popover: oklch(0.122 0.023 316.899);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.023 316.899);
  --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.18 0.002 315.37);
  --primary-foreground: oklch(0.737 0.008 315.381);
  --secondary: oklch(0.183 0.002 135.485);
  --secondary-foreground: oklch(0.745 0.008 135.475);
  --accent: oklch(0.183 0.002 135.485);
  --accent-foreground: oklch(0.745 0.008 135.475);
  --destructive: oklch(0.65 0.188 42.426);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.002 315.37);
  --chart-1: oklch(0.18 0.002 315.37);
  --chart-2: oklch(0.183 0.002 135.485);
  --chart-3: oklch(0.183 0.002 135.485);
  --chart-4: oklch(0.217 0.003 135.494);
  --chart-5: oklch(0.179 0.005 315.312);
}