Decisive for shadcn/ui

Decisive is a shadcn/ui theme built around a vivid purple primary color (#fb2df4) with vivid teal accents (#2df4fb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#fb2df4) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#050104black
#f9f6f9whitesmoke
Card
#fcfcfcsnow
#0a050ablack
Card foreground
#000000black
#fbf9fbsnow
Popover
#fcfcfcsnow
#0a050ablack
Popover foreground
#000000black
#fbf9fbsnow
Primary
#fb2df4magenta
#fb2df4magenta
Primary foreground
#000000black
#000000black
Secondary
#f4fb2dyellow
#f4fb2dyellow
Secondary foreground
#575a02darkolivegreen
#575a02darkolivegreen
Muted
#edeed8beige
#262711black
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#2df4fbaqua
#2df4fbaqua
Accent foreground
#02575adarkslategray
#02575adarkslategray
Destructive
#6b1d01maroon
#fe6a34tomato
Destructive foreground
#ffb89flightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb2df4magenta
#fb2df4magenta

Contrast

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

Light mode
Text on background20.73:1AAA
Text on card20.54:1AAA
Primary button6.77:1AA
Secondary button6.49:1AA
Muted text6.61:1AA
Accent6.13:1AA
Destructive7.02:1AAA
Dark mode
Text on background19.08:1AAA
Text on card19.29:1AAA
Primary button6.77:1AA
Secondary button6.49:1AA
Muted text6.79:1AA
Accent6.13:1AA
Destructive7.31:1AAA

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.083 0.029 328.613);
  --muted: oklch(0.942 0.028 108.482);
  --muted-foreground: oklch(0.437 0 180);
  --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.701 0.298 329.776);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.951 0.201 111.746);
  --secondary-foreground: oklch(0.45 0.099 111.957);
  --accent: oklch(0.881 0.144 198.65);
  --accent-foreground: oklch(0.415 0.07 198.815);
  --destructive: oklch(0.354 0.116 37.789);
  --destructive-foreground: oklch(0.842 0.089 40.833);
  --ring: oklch(0.701 0.298 329.776);
  --chart-1: oklch(0.701 0.298 329.776);
  --chart-2: oklch(0.951 0.201 111.746);
  --chart-3: oklch(0.881 0.144 198.65);
  --chart-4: oklch(0.953 0.195 111.569);
  --chart-5: oklch(0.706 0.303 329.819);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.016 327.512);
  --foreground: oklch(0.976 0.005 326.586);
  --muted: oklch(0.265 0.036 110.283);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.127 0.019 327.529);
  --popover-foreground: oklch(0.984 0.003 326.571);
  --card: oklch(0.127 0.019 327.529);
  --card-foreground: oklch(0.984 0.003 326.571);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.701 0.298 329.776);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.951 0.201 111.746);
  --secondary-foreground: oklch(0.45 0.099 111.957);
  --accent: oklch(0.881 0.144 198.65);
  --accent-foreground: oklch(0.415 0.07 198.815);
  --destructive: oklch(0.701 0.193 39.151);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.701 0.298 329.776);
  --chart-1: oklch(0.701 0.298 329.776);
  --chart-2: oklch(0.951 0.201 111.746);
  --chart-3: oklch(0.881 0.144 198.65);
  --chart-4: oklch(0.953 0.195 111.569);
  --chart-5: oklch(0.706 0.303 329.819);
}