Well-worn for shadcn/ui

Well-worn is a shadcn/ui theme built around a violet primary color (#5a39a7) with purple accents (#9139a7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the violet primary (#5a39a7) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#040307black
Foreground
#05020dblack
#f9f9fbghostwhite
Card
#f9f8fcghostwhite
#040307black
Card foreground
#05020dblack
#f9f9fbghostwhite
Popover
#f9f8fcghostwhite
#040307black
Popover foreground
#05020dblack
#f9f9fbghostwhite
Primary
#5a39a7rebeccapurple
#5a39a7rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#394fa7darkslateblue
#394fa7darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0d4e7gainsboro
#181d2fblack
Muted foreground
#464953darkslategray
#acafb9darkgray
Accent
#9139a7darkorchid
#9139a7darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#952109darkred
#f0350forangered
Destructive foreground
#fcdbd4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a39a7rebeccapurple
#5a39a7rebeccapurple

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button8.12:1AAA
Secondary button7.34:1AAA
Muted text6.11:1AA
Accent6.25:1AA
Destructive6.51:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button8.12:1AAA
Secondary button7.34:1AAA
Muted text7.63:1AAA
Accent6.25:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 299.948);
  --foreground: oklch(0.106 0.035 299.874);
  --muted: oklch(0.873 0.026 274.657);
  --muted-foreground: oklch(0.406 0.017 274.494);
  --popover: oklch(0.981 0.005 299.948);
  --popover-foreground: oklch(0.106 0.035 299.874);
  --card: oklch(0.981 0.005 299.948);
  --card-foreground: oklch(0.106 0.035 299.874);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.167 292.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.461 0.143 269.465);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.513 0.182 319.014);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.439 0.155 32.689);
  --destructive-foreground: oklch(0.916 0.039 31.182);
  --ring: oklch(0.447 0.167 292.034);
  --chart-1: oklch(0.447 0.167 292.034);
  --chart-2: oklch(0.461 0.143 269.465);
  --chart-3: oklch(0.513 0.182 319.014);
  --chart-4: oklch(0.483 0.151 269.413);
  --chart-5: oklch(0.444 0.176 291.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.013 300.163);
  --foreground: oklch(0.982 0.003 299.981);
  --muted: oklch(0.235 0.036 272.645);
  --muted-foreground: oklch(0.755 0.014 274.798);
  --popover: oklch(0.106 0.013 300.163);
  --popover-foreground: oklch(0.982 0.003 299.981);
  --card: oklch(0.106 0.013 300.163);
  --card-foreground: oklch(0.982 0.003 299.981);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.447 0.167 292.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.461 0.143 269.465);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.513 0.182 319.014);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.621 0.226 32.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.167 292.034);
  --chart-1: oklch(0.447 0.167 292.034);
  --chart-2: oklch(0.461 0.143 269.465);
  --chart-3: oklch(0.513 0.182 319.014);
  --chart-4: oklch(0.483 0.151 269.413);
  --chart-5: oklch(0.444 0.176 291.312);
}