Well-off for shadcn/ui

Well-off is a shadcn/ui theme built around a vivid deep purple primary color (#51054c) with vivid deep teal accents (#054c51). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#51054c) on a neutral background (#040203).

Color palette

TokenLightDark
Background
#ffffffwhite
#040203black
Foreground
#0c040bblack
#faf5f9whitesmoke
Card
#ffffffwhite
#040203black
Card foreground
#0c040bblack
#faf5f9whitesmoke
Popover
#ffffffwhite
#040203black
Popover foreground
#0c040bblack
#faf5f9whitesmoke
Primary
#51054cindigo
#51054cindigo
Primary foreground
#f891f1violet
#f891f1violet
Secondary
#4c5105darkolivegreen
#4c5105darkolivegreen
Secondary foreground
#e5f231yellow
#e5f231yellow
Muted
#f1f2e3beige
#1b1c0dblack
Muted foreground
#4d4e3bdarkolivegreen
#c3c4b1silver
Accent
#054c51darkslategray
#054c51darkslategray
Accent foreground
#31e5f2turquoise
#31e5f2turquoise
Destructive
#6e1708maroon
#f04628orangered
Destructive foreground
#f9b9aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#51054cindigo
#51054cindigo

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.95:1AA
Secondary button6.81:1AA
Muted text7.53:1AAA
Accent6.27:1AA
Destructive7.05:1AAA
Dark mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button6.95:1AA
Secondary button6.81:1AA
Muted text9.71:1AAA
Accent6.27:1AA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.027 329.012);
  --muted: oklch(0.957 0.02 109.874);
  --muted-foreground: oklch(0.419 0.031 110.806);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.027 329.012);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.027 329.012);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.307 0.132 331.484);
  --primary-foreground: oklch(0.796 0.171 329.473);
  --secondary: oklch(0.418 0.091 113.886);
  --secondary-foreground: oklch(0.921 0.195 113.685);
  --accent: oklch(0.382 0.063 202.771);
  --accent-foreground: oklch(0.843 0.136 202.529);
  --destructive: oklch(0.354 0.123 32.308);
  --destructive-foreground: oklch(0.842 0.077 30.067);
  --ring: oklch(0.307 0.132 331.484);
  --chart-1: oklch(0.307 0.132 331.484);
  --chart-2: oklch(0.418 0.091 113.886);
  --chart-3: oklch(0.382 0.063 202.771);
  --chart-4: oklch(0.468 0.102 113.972);
  --chart-5: oklch(0.309 0.135 331.555);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.014 328.521);
  --foreground: oklch(0.975 0.007 327.618);
  --muted: oklch(0.221 0.028 111.738);
  --muted-foreground: oklch(0.813 0.026 110.077);
  --popover: oklch(0.088 0.014 328.521);
  --popover-foreground: oklch(0.975 0.007 327.618);
  --card: oklch(0.088 0.014 328.521);
  --card-foreground: oklch(0.975 0.007 327.618);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.307 0.132 331.484);
  --primary-foreground: oklch(0.796 0.171 329.473);
  --secondary: oklch(0.418 0.091 113.886);
  --secondary-foreground: oklch(0.921 0.195 113.685);
  --accent: oklch(0.382 0.063 202.771);
  --accent-foreground: oklch(0.843 0.136 202.529);
  --destructive: oklch(0.638 0.211 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.307 0.132 331.484);
  --chart-1: oklch(0.307 0.132 331.484);
  --chart-2: oklch(0.418 0.091 113.886);
  --chart-3: oklch(0.382 0.063 202.771);
  --chart-4: oklch(0.468 0.102 113.972);
  --chart-5: oklch(0.309 0.135 331.555);
}