Helpful for shadcn/ui

Helpful is a shadcn/ui theme built around an indigo primary color (#8a75d7) with green accents (#c2d775). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#8a75d7) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#020104black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#040208black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#040208black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#8a75d7mediumpurple
#8a75d7mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#c2d775darkkhaki
#c2d775darkkhaki
Secondary foreground
#111406black
#111406black
Muted
#f1f2eewhitesmoke
#10110dblack
Muted foreground
#5d5f53dimgray
#a9aca0darkgray
Accent
#c2d775darkkhaki
#c2d775darkkhaki
Accent foreground
#111406black
#111406black
Destructive
#a32f05firebrick
#f24607orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a75d7mediumpurple
#8a75d7mediumpurple

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.54:1AAA
Primary button5.58:1AA
Secondary button11.75:1AAA
Muted text5.77:1AA
Accent11.75:1AAA
Destructive7.05:1AAA
Dark mode
Text on background19.78:1AAA
Text on card20.11:1AAA
Primary button5.58:1AA
Secondary button11.75:1AAA
Muted text8.18:1AAA
Accent11.75:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.075 0.02 295.355);
  --muted: oklch(0.958 0.005 116.432);
  --muted-foreground: oklch(0.481 0.02 117.078);
  --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.624 0.145 291.613);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.841 0.126 119.239);
  --secondary-foreground: oklch(0.182 0.028 118.818);
  --accent: oklch(0.841 0.126 119.239);
  --accent-foreground: oklch(0.182 0.028 118.818);
  --destructive: oklch(0.48 0.158 36.668);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.145 291.613);
  --chart-1: oklch(0.624 0.145 291.613);
  --chart-2: oklch(0.841 0.126 119.239);
  --chart-3: oklch(0.841 0.126 119.239);
  --chart-4: oklch(0.855 0.117 118.932);
  --chart-5: oklch(0.62 0.152 291.272);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.016 295.613);
  --foreground: oklch(0.982 0.003 296.275);
  --muted: oklch(0.176 0.008 117.164);
  --muted-foreground: oklch(0.739 0.018 116.77);
  --popover: oklch(0.099 0.02 295.613);
  --popover-foreground: oklch(0.991 0.001 296.303);
  --card: oklch(0.099 0.02 295.613);
  --card-foreground: oklch(0.991 0.001 296.303);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.624 0.145 291.613);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.841 0.126 119.239);
  --secondary-foreground: oklch(0.182 0.028 118.818);
  --accent: oklch(0.841 0.126 119.239);
  --accent-foreground: oklch(0.182 0.028 118.818);
  --destructive: oklch(0.64 0.217 35.967);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.145 291.613);
  --chart-1: oklch(0.624 0.145 291.613);
  --chart-2: oklch(0.841 0.126 119.239);
  --chart-3: oklch(0.841 0.126 119.239);
  --chart-4: oklch(0.855 0.117 118.932);
  --chart-5: oklch(0.62 0.152 291.272);
}