Productive for shadcn/ui

Productive is a shadcn/ui theme built around a green primary color (#bddf4e) with indigo accents (#704edf). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#bddf4e) on a green-tinted background (#090a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#090a05black
Foreground
#121703black
#fdfdfcwhite
Card
#ffffffwhite
#090a05black
Card foreground
#121703black
#fdfdfcwhite
Popover
#ffffffwhite
#090a05black
Popover foreground
#121703black
#fdfdfcwhite
Primary
#bddf4egreenyellow
#bddf4egreenyellow
Primary foreground
#000000black
#000000black
Secondary
#704edfslateblue
#704edfslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d7d3e3gainsboro
#201c2cblack
Muted foreground
#54525bdimgray
#a6a4addarkgray
Accent
#704edfslateblue
#704edfslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#911e0ddarkred
#d82d13firebrick
Destructive foreground
#fbdad5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bddf4egreenyellow
#bddf4egreenyellow

Contrast

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

Light mode
Text on background18.26:1AAA
Text on card18.26:1AAA
Primary button13.78:1AAA
Secondary button5.45:1AA
Muted text5.25:1AA
Accent5.45:1AA
Destructive6.68:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button13.78:1AAA
Secondary button5.45:1AA
Muted text6.77:1AA
Accent5.45:1AA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.193 0.039 120.173);
  --muted: oklch(0.876 0.022 296.632);
  --muted-foreground: oklch(0.445 0.014 296.502);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.193 0.039 120.173);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.193 0.039 120.173);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.851 0.172 121.421);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.543 0.208 288.153);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.208 288.153);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.431 0.153 31.603);
  --destructive-foreground: oklch(0.915 0.038 28.2);
  --ring: oklch(0.851 0.172 121.421);
  --chart-1: oklch(0.851 0.172 121.421);
  --chart-2: oklch(0.543 0.208 288.153);
  --chart-3: oklch(0.543 0.208 288.153);
  --chart-4: oklch(0.574 0.194 289.592);
  --chart-5: oklch(0.859 0.177 121.578);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 117.32);
  --foreground: oklch(0.994 0.002 117.114);
  --muted: oklch(0.238 0.03 294.71);
  --muted-foreground: oklch(0.723 0.013 296.766);
  --popover: oklch(0.143 0.014 117.32);
  --popover-foreground: oklch(0.994 0.002 117.114);
  --card: oklch(0.143 0.014 117.32);
  --card-foreground: oklch(0.994 0.002 117.114);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.172 121.421);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.543 0.208 288.153);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.208 288.153);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.573 0.209 31.503);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.172 121.421);
  --chart-1: oklch(0.851 0.172 121.421);
  --chart-2: oklch(0.543 0.208 288.153);
  --chart-3: oklch(0.543 0.208 288.153);
  --chart-4: oklch(0.574 0.194 289.592);
  --chart-5: oklch(0.859 0.177 121.578);
}