Beneficial for shadcn/ui

Beneficial is a shadcn/ui theme built around a near-black primary color (#060505) with near-black accents (#050506). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#060505) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffffffwhite
#040102black
Foreground
#0f0508black
#ffffffwhite
Card
#fcfcfcsnow
#080204black
Card foreground
#0c0406black
#ffffffwhite
Popover
#ffffffwhite
#040102black
Popover foreground
#0f0508black
#ffffffwhite
Primary
#060505black
#060505black
Primary foreground
#a8949arosybrown
#a8949arosybrown
Secondary
#050605black
#050605black
Secondary foreground
#9aa894darkseagreen
#9aa894darkseagreen
Muted
#ebf3e7beige
#0f180cblack
Muted foreground
#5c6459dimgray
#9ea69bdarkgray
Accent
#050506black
#050506black
Accent foreground
#949aa8darkgray
#949aa8darkgray
Destructive
#cd0e04firebrick
#fa2014red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060505black
#060505black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card19.84:1AAA
Primary button7.15:1AAA
Secondary button8.13:1AAA
Muted text5.41:1AA
Accent7.23:1AAA
Destructive5.73:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button7.15:1AAA
Secondary button8.13:1AAA
Muted text7.25:1AAA
Accent7.23:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.022 358.984);
  --muted: oklch(0.955 0.019 136.667);
  --muted-foreground: oklch(0.493 0.02 136.736);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.022 358.984);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.122 0.019 357.671);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.114 0.003 357.681);
  --primary-foreground: oklch(0.687 0.024 358.705);
  --secondary: oklch(0.117 0.004 136.298);
  --secondary-foreground: oklch(0.714 0.032 136.746);
  --accent: oklch(0.114 0.003 267.644);
  --accent-foreground: oklch(0.686 0.021 268.546);
  --destructive: oklch(0.536 0.215 29.594);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.114 0.003 357.681);
  --chart-1: oklch(0.114 0.003 357.681);
  --chart-2: oklch(0.117 0.004 136.298);
  --chart-3: oklch(0.114 0.003 267.644);
  --chart-4: oklch(0.161 0.006 136.725);
  --chart-5: oklch(0.113 0.004 357.671);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.014 357.497);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.027 137.114);
  --muted-foreground: oklch(0.716 0.019 136.687);
  --popover: oklch(0.084 0.014 357.497);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.018 357.497);
  --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.114 0.003 357.681);
  --primary-foreground: oklch(0.687 0.024 358.705);
  --secondary: oklch(0.117 0.004 136.298);
  --secondary-foreground: oklch(0.714 0.032 136.746);
  --accent: oklch(0.114 0.003 267.644);
  --accent-foreground: oklch(0.686 0.021 268.546);
  --destructive: oklch(0.628 0.245 29.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.114 0.003 357.681);
  --chart-1: oklch(0.114 0.003 357.681);
  --chart-2: oklch(0.117 0.004 136.298);
  --chart-3: oklch(0.114 0.003 267.644);
  --chart-4: oklch(0.161 0.006 136.725);
  --chart-5: oklch(0.113 0.004 357.671);
}