Decisive for shadcn/ui

Decisive is a shadcn/ui theme built around a green primary color (#53a44c) with red accents (#a44c53). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#53a44c) on a green-tinted background (#060f05).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060f05black
Foreground
#030802black
#f9fbf9mintcream
Card
#fbfefbwhite
#060f05black
Card foreground
#030802black
#f9fbf9mintcream
Popover
#fbfefbwhite
#060f05black
Popover foreground
#030802black
#f9fbf9mintcream
Primary
#53a44cseagreen
#53a44cseagreen
Primary foreground
#000000black
#000000black
Secondary
#4c53a4darkslateblue
#4c53a4darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eaebf0lavender
#0f0f15black
Muted foreground
#55565edimgray
#a1a2aadarkgray
Accent
#a44c53sienna
#a44c53sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#802f00saddlebrown
#fa5c00orangered
Destructive foreground
#ffcfb3peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#53a44cseagreen
#53a44cseagreen

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button6.79:1AA
Secondary button6.82:1AA
Muted text6.11:1AA
Accent5.63:1AA
Destructive6.41:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button6.79:1AA
Secondary button6.82:1AA
Muted text7.50:1AAA
Accent5.63:1AA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 143.117);
  --foreground: oklch(0.122 0.022 141.483);
  --muted: oklch(0.94 0.007 282.08);
  --muted-foreground: oklch(0.454 0.013 281.714);
  --popover: oklch(0.994 0.004 143.117);
  --popover-foreground: oklch(0.122 0.022 141.483);
  --card: oklch(0.994 0.004 143.117);
  --card-foreground: oklch(0.122 0.022 141.483);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.647 0.148 142.074);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.478 0.129 276.442);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.117 16.833);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.416 0.122 43.337);
  --destructive-foreground: oklch(0.888 0.067 51.626);
  --ring: oklch(0.647 0.148 142.074);
  --chart-1: oklch(0.647 0.148 142.074);
  --chart-2: oklch(0.478 0.129 276.442);
  --chart-3: oklch(0.529 0.117 16.833);
  --chart-4: oklch(0.499 0.136 276.391);
  --chart-5: oklch(0.655 0.158 142.031);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.028 141.711);
  --foreground: oklch(0.986 0.003 143.119);
  --muted: oklch(0.172 0.012 281.019);
  --muted-foreground: oklch(0.714 0.012 281.934);
  --popover: oklch(0.156 0.028 141.711);
  --popover-foreground: oklch(0.986 0.003 143.119);
  --card: oklch(0.156 0.028 141.711);
  --card-foreground: oklch(0.986 0.003 143.119);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.647 0.148 142.074);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.478 0.129 276.442);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.529 0.117 16.833);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.675 0.208 41.048);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.647 0.148 142.074);
  --chart-1: oklch(0.647 0.148 142.074);
  --chart-2: oklch(0.478 0.129 276.442);
  --chart-3: oklch(0.529 0.117 16.833);
  --chart-4: oklch(0.499 0.136 276.391);
  --chart-5: oklch(0.655 0.158 142.031);
}