Decisive for shadcn/ui

Decisive is a shadcn/ui theme built around a neutral gray primary color (#cbcdcd) with neutral gray accents (#b8c1c1). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the neutral gray primary (#cbcdcd) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#020303black
Foreground
#010404black
#f6f9f9whitesmoke
Card
#f5fafamintcream
#030707black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#f8fcfcmintcream
#020303black
Popover foreground
#010404black
#f6f9f9whitesmoke
Primary
#cbcdcdlightgrey
#cbcdcdlightgrey
Primary foreground
#323434darkslategray
#323434darkslategray
Secondary
#cbcdcdlightgrey
#222525darkslategray
Secondary foreground
#323434darkslategray
#babfbfsilver
Muted
#e3ededlavender
#121c1cblack
Muted foreground
#405454darkslategray
#abbfbfsilver
Accent
#b8c1c1silver
#323e3edarkslategray
Accent foreground
#212626darkslategray
#cdd6d6lightgrey
Destructive
#a72002firebrick
#fd3408orangered
Destructive foreground
#ffe2dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbcdcdlightgrey
#cbcdcdlightgrey

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.92:1AAA
Primary button7.82:1AAA
Secondary button7.82:1AAA
Muted text6.74:1AA
Accent8.37:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.49:1AAA
Primary button7.82:1AAA
Secondary button8.29:1AAA
Muted text9.03:1AAA
Accent7.50:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 197.098);
  --foreground: oklch(0.101 0.013 195.347);
  --muted: oklch(0.939 0.011 196.965);
  --muted-foreground: oklch(0.428 0.024 196.299);
  --popover: oklch(0.987 0.004 197.098);
  --popover-foreground: oklch(0.101 0.013 195.347);
  --card: oklch(0.981 0.006 197.067);
  --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.846 0.001 197.137);
  --primary-foreground: oklch(0.322 0.001 197.086);
  --secondary: oklch(0.846 0.001 197.137);
  --secondary-foreground: oklch(0.322 0.001 197.086);
  --accent: oklch(0.805 0.01 196.952);
  --accent-foreground: oklch(0.264 0.007 196.725);
  --destructive: oklch(0.472 0.174 32.825);
  --destructive-foreground: oklch(0.935 0.033 32.708);
  --ring: oklch(0.846 0.001 197.137);
  --chart-1: oklch(0.846 0.001 197.137);
  --chart-2: oklch(0.846 0.001 197.137);
  --chart-3: oklch(0.805 0.01 196.952);
  --chart-4: oklch(0.87 0.001 197.141);
  --chart-5: oklch(0.848 0.004 197.072);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.007 196.019);
  --foreground: oklch(0.98 0.004 197.094);
  --muted: oklch(0.217 0.015 196.093);
  --muted-foreground: oklch(0.789 0.021 196.733);
  --popover: oklch(0.097 0.007 196.019);
  --popover-foreground: oklch(0.98 0.004 197.094);
  --card: oklch(0.122 0.009 196.019);
  --card-foreground: oklch(0.987 0.003 197.115);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.001 197.137);
  --primary-foreground: oklch(0.322 0.001 197.086);
  --secondary: oklch(0.262 0.004 196.902);
  --secondary-foreground: oklch(0.802 0.006 197.039);
  --accent: oklch(0.353 0.015 196.499);
  --accent-foreground: oklch(0.868 0.01 196.973);
  --destructive: oklch(0.643 0.238 32.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.001 197.137);
  --chart-1: oklch(0.846 0.001 197.137);
  --chart-2: oklch(0.262 0.004 196.902);
  --chart-3: oklch(0.353 0.015 196.499);
  --chart-4: oklch(0.294 0.005 196.889);
  --chart-5: oklch(0.848 0.004 197.072);
}