Productive for shadcn/ui

Productive is a shadcn/ui theme built around a neutral gray primary color (#585c57) with neutral gray accents (#5b575c). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the neutral gray primary (#585c57) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#030802black
Foreground
#091306black
#fcfdfbsnow
Card
#f8fdf7mintcream
#030802black
Card foreground
#091306black
#fcfdfbsnow
Popover
#f8fdf7mintcream
#030802black
Popover foreground
#091306black
#fcfdfbsnow
Primary
#585c57dimgray
#585c57dimgray
Primary foreground
#f2f3f2whitesmoke
#f2f3f2whitesmoke
Secondary
#5b575cdimgray
#5b575cdimgray
Secondary foreground
#f2f2f3whitesmoke
#f2f2f3whitesmoke
Muted
#e4dae7gainsboro
#221825black
Muted foreground
#65526bdimgray
#a794addarkgray
Accent
#5b575cdimgray
#5b575cdimgray
Accent foreground
#f2f2f3whitesmoke
#f2f2f3whitesmoke
Destructive
#740b0bmaroon
#ec3c3ccrimson
Destructive foreground
#f8b9b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#585c57dimgray
#585c57dimgray

Contrast

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

Light mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button6.13:1AA
Secondary button6.37:1AA
Muted text5.21:1AA
Accent6.37:1AA
Destructive7.02:1AAA
Dark mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.13:1AA
Secondary button6.37:1AA
Muted text6.09:1AA
Accent6.37:1AA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.01 138.341);
  --foreground: oklch(0.173 0.031 137.915);
  --muted: oklch(0.9 0.019 318.309);
  --muted-foreground: oklch(0.467 0.045 318.229);
  --popover: oklch(0.989 0.01 138.341);
  --popover-foreground: oklch(0.173 0.031 137.915);
  --card: oklch(0.989 0.01 138.341);
  --card-foreground: oklch(0.173 0.031 137.915);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.469 0.01 138.352);
  --primary-foreground: oklch(0.962 0.001 138.331);
  --secondary: oklch(0.461 0.01 318.309);
  --secondary-foreground: oklch(0.961 0.001 318.329);
  --accent: oklch(0.461 0.01 318.309);
  --accent-foreground: oklch(0.961 0.001 318.329);
  --destructive: oklch(0.358 0.137 27.767);
  --destructive-foreground: oklch(0.844 0.073 18.707);
  --ring: oklch(0.469 0.01 138.352);
  --chart-1: oklch(0.469 0.01 138.352);
  --chart-2: oklch(0.461 0.01 318.309);
  --chart-3: oklch(0.461 0.01 318.309);
  --chart-4: oklch(0.488 0.011 318.308);
  --chart-5: oklch(0.473 0.02 138.376);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.023 136.537);
  --foreground: oklch(0.994 0.003 138.333);
  --muted: oklch(0.228 0.027 318.202);
  --muted-foreground: oklch(0.692 0.041 318.271);
  --popover: oklch(0.125 0.023 136.537);
  --popover-foreground: oklch(0.994 0.003 138.333);
  --card: oklch(0.125 0.023 136.537);
  --card-foreground: oklch(0.994 0.003 138.333);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.469 0.01 138.352);
  --primary-foreground: oklch(0.962 0.001 138.331);
  --secondary: oklch(0.461 0.01 318.309);
  --secondary-foreground: oklch(0.961 0.001 318.329);
  --accent: oklch(0.461 0.01 318.309);
  --accent-foreground: oklch(0.961 0.001 318.329);
  --destructive: oklch(0.623 0.212 25.894);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.469 0.01 138.352);
  --chart-1: oklch(0.469 0.01 138.352);
  --chart-2: oklch(0.461 0.01 318.309);
  --chart-3: oklch(0.461 0.01 318.309);
  --chart-4: oklch(0.488 0.011 318.308);
  --chart-5: oklch(0.473 0.02 138.376);
}