Useful for shadcn/ui

Useful is a shadcn/ui theme built around a muted yellow primary color (#bec190) with muted purple accents (#c190be). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted yellow primary (#bec190) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fbfcf8snow
#040401black
Foreground
#090901black
#fdfdfcwhite
Card
#fbfcf8snow
#040401black
Card foreground
#090901black
#fdfdfcwhite
Popover
#fbfcf8snow
#040401black
Popover foreground
#090901black
#fdfdfcwhite
Primary
#bec190tan
#bec190tan
Primary foreground
#13140bblack
#13140bblack
Secondary
#90bec1darkgray
#90bec1darkgray
Secondary foreground
#0b1314black
#0b1314black
Muted
#d5ebeclavender
#13292adarkslategray
Muted foreground
#4e686adimgray
#95b0b1darkgray
Accent
#c190bedarkgray
#c190bedarkgray
Accent foreground
#140b13black
#140b13black
Destructive
#9f3f0fsaddlebrown
#ea631fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bec190tan
#bec190tan

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.35:1AAA
Primary button9.87:1AAA
Secondary button9.24:1AAA
Muted text4.80:1AA
Accent7.35:1AAA
Destructive6.60:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button9.87:1AAA
Secondary button9.24:1AAA
Muted text6.63:1AA
Accent7.35:1AAA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 108.79);
  --foreground: oklch(0.136 0.025 110.986);
  --muted: oklch(0.923 0.023 200.601);
  --muted-foreground: oklch(0.498 0.031 200.241);
  --popover: oklch(0.989 0.004 108.79);
  --popover-foreground: oklch(0.136 0.025 110.986);
  --card: oklch(0.989 0.004 108.79);
  --card-foreground: oklch(0.136 0.025 110.986);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.795 0.065 110.177);
  --primary-foreground: oklch(0.186 0.016 110.293);
  --secondary: oklch(0.77 0.049 200.231);
  --secondary-foreground: oklch(0.179 0.012 200.191);
  --accent: oklch(0.715 0.085 328.082);
  --accent-foreground: oklch(0.165 0.022 328.177);
  --destructive: oklch(0.492 0.139 42.337);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.795 0.065 110.177);
  --chart-1: oklch(0.795 0.065 110.177);
  --chart-2: oklch(0.77 0.049 200.231);
  --chart-3: oklch(0.715 0.085 328.082);
  --chart-4: oklch(0.791 0.045 200.289);
  --chart-5: oklch(0.802 0.072 110.305);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 110.513);
  --foreground: oklch(0.993 0.001 108.722);
  --muted: oklch(0.263 0.028 199.995);
  --muted-foreground: oklch(0.737 0.029 200.449);
  --popover: oklch(0.104 0.014 110.513);
  --popover-foreground: oklch(0.993 0.001 108.722);
  --card: oklch(0.104 0.014 110.513);
  --card-foreground: oklch(0.993 0.001 108.722);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.795 0.065 110.177);
  --primary-foreground: oklch(0.186 0.016 110.293);
  --secondary: oklch(0.77 0.049 200.231);
  --secondary-foreground: oklch(0.179 0.012 200.191);
  --accent: oklch(0.715 0.085 328.082);
  --accent-foreground: oklch(0.165 0.022 328.177);
  --destructive: oklch(0.661 0.183 42.725);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.795 0.065 110.177);
  --chart-1: oklch(0.795 0.065 110.177);
  --chart-2: oklch(0.77 0.049 200.231);
  --chart-3: oklch(0.715 0.085 328.082);
  --chart-4: oklch(0.791 0.045 200.289);
  --chart-5: oklch(0.802 0.072 110.305);
}