Helpful for shadcn/ui

Helpful is a shadcn/ui theme built around a vivid green primary color (#bff882) with vivid violet accents (#bb82f8). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#bff882) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#000000black
Foreground
#0d1405black
#fafbf9snow
Card
#f7fcf3whitesmoke
#030303black
Card foreground
#0a1004black
#fcfdfcwhite
Popover
#f7fcf3whitesmoke
#030303black
Popover foreground
#0a1004black
#fcfdfcwhite
Primary
#bff882palegreen
#bff882palegreen
Primary foreground
#254304darkgreen
#254304darkgreen
Secondary
#bb82f8orchid
#bb82f8orchid
Secondary foreground
#230443midnightblue
#230443midnightblue
Muted
#e8e3eelavender
#17111cblack
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#bb82f8orchid
#bb82f8orchid
Accent foreground
#230443midnightblue
#230443midnightblue
Destructive
#810c03maroon
#ea1506red
Destructive foreground
#fdbeb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bff882palegreen
#bff882palegreen

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card18.51:1AAA
Primary button8.98:1AAA
Secondary button6.52:1AA
Muted text7.00:1AAA
Accent6.52:1AA
Destructive6.65:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.28:1AAA
Primary button8.98:1AAA
Secondary button6.52:1AA
Muted text9.01:1AAA
Accent6.52:1AA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 127.888);
  --foreground: oklch(0.18 0.032 129.338);
  --muted: oklch(0.922 0.016 307.589);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.985 0.012 127.939);
  --popover-foreground: oklch(0.163 0.028 128.253);
  --card: oklch(0.985 0.012 127.939);
  --card-foreground: oklch(0.163 0.028 128.253);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.914 0.159 130.23);
  --primary-foreground: oklch(0.347 0.094 133.085);
  --secondary: oklch(0.711 0.174 304.682);
  --secondary-foreground: oklch(0.218 0.108 298.811);
  --accent: oklch(0.711 0.174 304.682);
  --accent-foreground: oklch(0.218 0.108 298.811);
  --destructive: oklch(0.385 0.15 30.053);
  --destructive-foreground: oklch(0.858 0.074 23.372);
  --ring: oklch(0.914 0.159 130.23);
  --chart-1: oklch(0.914 0.159 130.23);
  --chart-2: oklch(0.711 0.174 304.682);
  --chart-3: oklch(0.711 0.174 304.682);
  --chart-4: oklch(0.742 0.154 305.231);
  --chart-5: oklch(0.918 0.164 130.311);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 127.835);
  --muted: oklch(0.192 0.023 306.36);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 127.812);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 127.812);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.914 0.159 130.23);
  --primary-foreground: oklch(0.347 0.094 133.085);
  --secondary: oklch(0.711 0.174 304.682);
  --secondary-foreground: oklch(0.218 0.108 298.811);
  --accent: oklch(0.711 0.174 304.682);
  --accent-foreground: oklch(0.218 0.108 298.811);
  --destructive: oklch(0.593 0.236 29.763);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.159 130.23);
  --chart-1: oklch(0.914 0.159 130.23);
  --chart-2: oklch(0.711 0.174 304.682);
  --chart-3: oklch(0.711 0.174 304.682);
  --chart-4: oklch(0.742 0.154 305.231);
  --chart-5: oklch(0.918 0.164 130.311);
}