Well-off for shadcn/ui

Well-off is a shadcn/ui theme built around a vivid purple primary color (#bb00e6) with vivid green accents (#2ae600). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid purple primary (#bb00e6) on a neutral background (#060407).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#060407black
Foreground
#070208black
#fdfbfdsnow
Card
#fbf8fcghostwhite
#09050ablack
Card foreground
#040104black
#ffffffwhite
Popover
#fdfbfdsnow
#060407black
Popover foreground
#070208black
#fdfbfdsnow
Primary
#bb00e6darkviolet
#bb00e6darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2ae600lime
#2ae600lime
Secondary foreground
#051a00black
#051a00black
Muted
#e0eeddgainsboro
#142211black
Muted foreground
#434841darkslategray
#b8beb7silver
Accent
#2ae600lime
#2ae600lime
Accent foreground
#051a00black
#051a00black
Destructive
#73280csaddlebrown
#e24e18chocolate
Destructive foreground
#f8cabapeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bb00e6darkviolet
#bb00e6darkviolet

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.70:1AAA
Primary button4.92:1AA
Secondary button10.71:1AAA
Muted text7.76:1AAA
Accent10.71:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.87:1AAA
Text on card20.20:1AAA
Primary button4.92:1AA
Secondary button10.71:1AAA
Muted text8.77:1AAA
Accent10.71:1AAA
Destructive3.93: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(0.991 0.003 319.994);
  --foreground: oklch(0.105 0.028 322.144);
  --muted: oklch(0.934 0.026 139.966);
  --muted-foreground: oklch(0.395 0.014 139.961);
  --popover: oklch(0.991 0.003 319.994);
  --popover-foreground: oklch(0.105 0.028 322.144);
  --card: oklch(0.982 0.006 319.997);
  --card-foreground: oklch(0.083 0.022 322.144);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.585 0.284 317.54);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.803 0.268 141.622);
  --secondary-foreground: oklch(0.19 0.059 138.218);
  --accent: oklch(0.803 0.268 141.622);
  --accent-foreground: oklch(0.19 0.059 138.218);
  --destructive: oklch(0.385 0.113 38.51);
  --destructive-foreground: oklch(0.875 0.057 40.951);
  --ring: oklch(0.585 0.284 317.54);
  --chart-1: oklch(0.585 0.284 317.54);
  --chart-2: oklch(0.803 0.268 141.622);
  --chart-3: oklch(0.803 0.268 141.622);
  --chart-4: oklch(0.843 0.281 141.647);
  --chart-5: oklch(0.59 0.288 317.387);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.012 320.965);
  --foreground: oklch(0.991 0.003 319.994);
  --muted: oklch(0.233 0.036 139.913);
  --muted-foreground: oklch(0.794 0.011 139.978);
  --popover: oklch(0.111 0.012 320.965);
  --popover-foreground: oklch(0.991 0.003 319.994);
  --card: oklch(0.127 0.014 320.965);
  --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.585 0.284 317.54);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.803 0.268 141.622);
  --secondary-foreground: oklch(0.19 0.059 138.218);
  --accent: oklch(0.803 0.268 141.622);
  --accent-foreground: oklch(0.19 0.059 138.218);
  --destructive: oklch(0.622 0.194 37.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.585 0.284 317.54);
  --chart-1: oklch(0.585 0.284 317.54);
  --chart-2: oklch(0.803 0.268 141.622);
  --chart-3: oklch(0.803 0.268 141.622);
  --chart-4: oklch(0.843 0.281 141.647);
  --chart-5: oklch(0.59 0.288 317.387);
}