Helpful for shadcn/ui

Helpful is a shadcn/ui theme built around a neutral gray primary color (#322f37) with neutral gray accents (#34372f). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the neutral gray primary (#322f37) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#07050ablack
Foreground
#080410black
#fcfcfdwhite
Card
#f5f2fdghostwhite
#09070dblack
Card foreground
#06030cblack
#ffffffwhite
Popover
#f5f2fdghostwhite
#09070dblack
Popover foreground
#06030cblack
#ffffffwhite
Primary
#322f37darkslategray
#322f37darkslategray
Primary foreground
#cbc8d0lightgrey
#cbc8d0lightgrey
Secondary
#34372fdarkslategray
#34372fdarkslategray
Secondary foreground
#cdd0c8lightgrey
#cdd0c8lightgrey
Muted
#eeeeecwhitesmoke
#121311black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#34372fdarkslategray
#34372fdarkslategray
Accent foreground
#cdd0c8lightgrey
#cdd0c8lightgrey
Destructive
#b30c09firebrick
#f31512red
Destructive foreground
#fef1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#322f37darkslategray
#322f37darkslategray

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.52:1AAA
Primary button7.93:1AAA
Secondary button7.78:1AAA
Muted text6.52:1AA
Accent7.78:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.76:1AAA
Text on card20.02:1AAA
Primary button7.93:1AAA
Secondary button7.78:1AAA
Muted text8.11:1AAA
Accent7.78:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.01 299.871);
  --foreground: oklch(0.124 0.031 298.788);
  --muted: oklch(0.949 0.003 120.09);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.967 0.015 299.784);
  --popover-foreground: oklch(0.112 0.027 300.029);
  --card: oklch(0.967 0.015 299.784);
  --card-foreground: oklch(0.112 0.027 300.029);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.013 299.339);
  --primary-foreground: oklch(0.838 0.01 299.836);
  --secondary: oklch(0.331 0.013 120.684);
  --secondary-foreground: oklch(0.853 0.01 120.236);
  --accent: oklch(0.331 0.013 120.684);
  --accent-foreground: oklch(0.853 0.01 120.236);
  --destructive: oklch(0.486 0.194 28.934);
  --destructive-foreground: oklch(0.968 0.015 18.596);
  --ring: oklch(0.312 0.013 299.339);
  --chart-1: oklch(0.312 0.013 299.339);
  --chart-2: oklch(0.331 0.013 120.684);
  --chart-3: oklch(0.331 0.013 120.684);
  --chart-4: oklch(0.362 0.014 120.702);
  --chart-5: oklch(0.308 0.019 299.02);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 300.139);
  --foreground: oklch(0.991 0.001 300.016);
  --muted: oklch(0.185 0.004 120.439);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.136 0.014 299.438);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.014 299.438);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.312 0.013 299.339);
  --primary-foreground: oklch(0.838 0.01 299.836);
  --secondary: oklch(0.331 0.013 120.684);
  --secondary-foreground: oklch(0.853 0.01 120.236);
  --accent: oklch(0.331 0.013 120.684);
  --accent-foreground: oklch(0.853 0.01 120.236);
  --destructive: oklch(0.61 0.243 28.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.312 0.013 299.339);
  --chart-1: oklch(0.312 0.013 299.339);
  --chart-2: oklch(0.331 0.013 120.684);
  --chart-3: oklch(0.331 0.013 120.684);
  --chart-4: oklch(0.362 0.014 120.702);
  --chart-5: oklch(0.308 0.019 299.02);
}