Worthwhile for shadcn/ui

Worthwhile is a shadcn/ui theme built around a muted light teal primary color (#c3dad9) with neutral gray accents (#dfe2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#c3dad9) on a neutral background (#020404).

Color palette

TokenLightDark
Background
#ffffffwhite
#020404black
Foreground
#020d0dblack
#f9fbfbghostwhite
Card
#ffffffwhite
#020404black
Card foreground
#020d0dblack
#f9fbfbghostwhite
Popover
#ffffffwhite
#020404black
Popover foreground
#020d0dblack
#f9fbfbghostwhite
Primary
#c3dad9lightgrey
#c3dad9lightgrey
Primary foreground
#294242darkslategray
#294242darkslategray
Secondary
#dfe2e2gainsboro
#2e3838darkslategray
Secondary foreground
#434c4bdarkslategray
#c7d1d1lightgrey
Muted
#e8f3f2whitesmoke
#0c1717black
Muted foreground
#585a5adimgray
#a5a7a7darkgray
Accent
#dfe2e2gainsboro
#2e3838darkslategray
Accent foreground
#434c4bdarkslategray
#c7d1d1lightgrey
Destructive
#a20601darkred
#fe362forangered
Destructive foreground
#ffd8d6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c3dad9lightgrey
#c3dad9lightgrey

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button7.36:1AAA
Secondary button6.79:1AA
Muted text6.11:1AA
Accent6.79:1AA
Destructive6.23:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.36:1AAA
Secondary button7.74:1AAA
Muted text7.52:1AAA
Accent7.74:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.02 192.906);
  --muted: oklch(0.955 0.012 194.561);
  --muted-foreground: oklch(0.466 0.002 194.699);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.02 192.906);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.02 192.906);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.871 0.025 194.263);
  --primary-foreground: oklch(0.36 0.032 193.169);
  --secondary: oklch(0.911 0.004 194.709);
  --secondary-foreground: oklch(0.408 0.011 194.287);
  --accent: oklch(0.911 0.004 194.709);
  --accent-foreground: oklch(0.408 0.011 194.287);
  --destructive: oklch(0.45 0.182 29.63);
  --destructive-foreground: oklch(0.914 0.044 20.322);
  --ring: oklch(0.871 0.025 194.263);
  --chart-1: oklch(0.871 0.025 194.263);
  --chart-2: oklch(0.911 0.004 194.709);
  --chart-3: oklch(0.911 0.004 194.709);
  --chart-4: oklch(0.933 0.003 194.731);
  --chart-5: oklch(0.874 0.028 194.201);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 193.789);
  --foreground: oklch(0.986 0.002 194.749);
  --muted: oklch(0.196 0.016 193.283);
  --muted-foreground: oklch(0.726 0.002 194.737);
  --popover: oklch(0.097 0.008 193.789);
  --popover-foreground: oklch(0.986 0.002 194.749);
  --card: oklch(0.097 0.008 193.789);
  --card-foreground: oklch(0.986 0.002 194.749);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.025 194.263);
  --primary-foreground: oklch(0.36 0.032 193.169);
  --secondary: oklch(0.332 0.014 194.029);
  --secondary-foreground: oklch(0.853 0.011 194.547);
  --accent: oklch(0.332 0.014 194.029);
  --accent-foreground: oklch(0.853 0.011 194.547);
  --destructive: oklch(0.649 0.235 28.106);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.025 194.263);
  --chart-1: oklch(0.871 0.025 194.263);
  --chart-2: oklch(0.332 0.014 194.029);
  --chart-3: oklch(0.332 0.014 194.029);
  --chart-4: oklch(0.363 0.015 194.009);
  --chart-5: oklch(0.874 0.028 194.201);
}