Beneficial for shadcn/ui

Beneficial is a shadcn/ui theme built around a vivid green primary color (#8efc7d) with muted green accents (#b6ccb3). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid green primary (#8efc7d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#000000black
Foreground
#071505black
#f8fcf8mintcream
Card
#f5fbf4whitesmoke
#030303black
Card foreground
#051104black
#fcfdfbsnow
Popover
#f8fcf8mintcream
#000000black
Popover foreground
#071505black
#f8fcf8mintcream
Primary
#8efc7dlightgreen
#8efc7dlightgreen
Primary foreground
#0b4601darkgreen
#0b4601darkgreen
Secondary
#cad4c9lightgrey
#171e15black
Secondary foreground
#313c2fdarkslategray
#aabfa6darkgray
Muted
#eaf1e9linen
#0f160eblack
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#b6ccb3silver
#263824darkslategray
Accent foreground
#212e1fdarkslategray
#bed3bbsilver
Destructive
#7d250csaddlebrown
#d13d15firebrick
Destructive foreground
#f9cec3peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8efc7dlightgreen
#8efc7dlightgreen

Contrast

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

Light mode
Text on background18.14:1AAA
Text on card18.32:1AAA
Primary button8.68:1AAA
Secondary button7.59:1AAA
Muted text6.60:1AA
Accent8.31:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.26:1AAA
Primary button8.68:1AAA
Secondary button8.72:1AAA
Muted text8.00:1AAA
Accent7.89:1AAA
Destructive4.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 141.572);
  --foreground: oklch(0.177 0.039 140.234);
  --muted: oklch(0.951 0.014 141.551);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.987 0.007 141.572);
  --popover-foreground: oklch(0.177 0.039 140.234);
  --card: oklch(0.981 0.011 141.561);
  --card-foreground: oklch(0.16 0.034 139.937);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.898 0.194 141.088);
  --primary-foreground: oklch(0.344 0.112 141.187);
  --secondary: oklch(0.86 0.019 141.529);
  --secondary-foreground: oklch(0.342 0.027 141.374);
  --accent: oklch(0.822 0.042 141.446);
  --accent-foreground: oklch(0.284 0.033 141.273);
  --destructive: oklch(0.4 0.127 35.424);
  --destructive-foreground: oklch(0.886 0.051 35.955);
  --ring: oklch(0.898 0.194 141.088);
  --chart-1: oklch(0.898 0.194 141.088);
  --chart-2: oklch(0.86 0.019 141.529);
  --chart-3: oklch(0.822 0.042 141.446);
  --chart-4: oklch(0.882 0.016 141.541);
  --chart-5: oklch(0.902 0.2 141.085);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.006 141.575);
  --muted: oklch(0.19 0.02 141.295);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.006 141.575);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.003 141.584);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.898 0.194 141.088);
  --primary-foreground: oklch(0.344 0.112 141.187);
  --secondary: oklch(0.223 0.019 141.357);
  --secondary-foreground: oklch(0.781 0.041 141.443);
  --accent: oklch(0.319 0.042 141.235);
  --accent-foreground: oklch(0.845 0.041 141.456);
  --destructive: oklch(0.575 0.19 34.983);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.898 0.194 141.088);
  --chart-1: oklch(0.898 0.194 141.088);
  --chart-2: oklch(0.223 0.019 141.357);
  --chart-3: oklch(0.319 0.042 141.235);
  --chart-4: oklch(0.258 0.023 141.338);
  --chart-5: oklch(0.902 0.2 141.085);
}