Well-being for shadcn/ui

Well-being is a shadcn/ui theme built around a muted violet primary color (#797089) with muted green accents (#708979). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#797089) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020203black
Foreground
#020104black
#fcfcfdwhite
Card
#fcfbfewhite
#020203black
Card foreground
#020104black
#fcfcfdwhite
Popover
#fcfbfewhite
#020203black
Popover foreground
#020104black
#fcfcfdwhite
Primary
#797089gray
#797089gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#897970gray
#897970gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2dcd9gainsboro
#26201dblack
Muted foreground
#534a46darkslategray
#b9b0acdarkgray
Accent
#708979gray
#708979gray
Accent foreground
#000000black
#000000black
Destructive
#7c170emaroon
#e12a19crimson
Destructive foreground
#f8c8c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#797089gray
#797089gray

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button4.65:1AA
Secondary button4.17:1AA Large
Muted text6.37:1AA
Accent5.57:1AA
Destructive7.07:1AAA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button4.65:1AA
Secondary button4.17:1AA Large
Muted text7.58:1AAA
Accent5.57:1AA
Destructive4.62:1AA

CSS variables

Paste this into your globals.css to use Well-being in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 301.442);
  --foreground: oklch(0.079 0.018 302.06);
  --muted: oklch(0.899 0.008 48.642);
  --muted-foreground: oklch(0.418 0.015 48.354);
  --popover: oklch(0.99 0.003 301.442);
  --popover-foreground: oklch(0.079 0.018 302.06);
  --card: oklch(0.99 0.003 301.442);
  --card-foreground: oklch(0.079 0.018 302.06);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.563 0.039 300.365);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.024 48.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.607 0.038 155.918);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.383 0.137 29.871);
  --destructive-foreground: oklch(0.873 0.056 24.322);
  --ring: oklch(0.563 0.039 300.365);
  --chart-1: oklch(0.563 0.039 300.365);
  --chart-2: oklch(0.588 0.024 48.287);
  --chart-3: oklch(0.607 0.038 155.918);
  --chart-4: oklch(0.614 0.023 48.318);
  --chart-5: oklch(0.556 0.051 299.995);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 301.802);
  --foreground: oklch(0.991 0.002 301.453);
  --muted: oklch(0.248 0.011 48.247);
  --muted-foreground: oklch(0.764 0.012 48.556);
  --popover: oklch(0.084 0.011 301.802);
  --popover-foreground: oklch(0.991 0.002 301.453);
  --card: oklch(0.084 0.011 301.802);
  --card-foreground: oklch(0.991 0.002 301.453);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.563 0.039 300.365);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.588 0.024 48.287);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.607 0.038 155.918);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.587 0.219 30.042);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.563 0.039 300.365);
  --chart-1: oklch(0.563 0.039 300.365);
  --chart-2: oklch(0.588 0.024 48.287);
  --chart-3: oklch(0.607 0.038 155.918);
  --chart-4: oklch(0.614 0.023 48.318);
  --chart-5: oklch(0.556 0.051 299.995);
}