Well-worn for shadcn/ui

Well-worn is a shadcn/ui theme built around a vivid purple primary color (#9e04cd) with vivid teal accents (#04cd9e). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid purple primary (#9e04cd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#000000black
Foreground
#0e0212black
#ffffffwhite
Card
#f9f5faghostwhite
#030303black
Card foreground
#0b020eblack
#ffffffwhite
Popover
#fbf8fcghostwhite
#000000black
Popover foreground
#0e0212black
#ffffffwhite
Primary
#9e04cddarkviolet
#9e04cddarkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cd9e04goldenrod
#cd9e04goldenrod
Secondary foreground
#050400black
#050400black
Muted
#efeeeclinen
#131310black
Muted foreground
#55524adarkolivegreen
#b5b3aadarkgray
Accent
#04cd9elightseagreen
#04cd9elightseagreen
Accent foreground
#000504black
#000504black
Destructive
#6f1901maroon
#fd582btomato
Destructive foreground
#feb8a4lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9e04cddarkviolet
#9e04cddarkviolet

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card18.85:1AAA
Primary button6.26:1AA
Secondary button8.29:1AAA
Muted text6.72:1AA
Accent9.98:1AAA
Destructive6.94:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.26:1AA
Secondary button8.29:1AAA
Muted text8.86:1AAA
Accent9.98:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 318.324);
  --foreground: oklch(0.13 0.045 319.372);
  --muted: oklch(0.949 0.003 92.692);
  --muted-foreground: oklch(0.438 0.014 92.938);
  --popover: oklch(0.982 0.006 318.324);
  --popover-foreground: oklch(0.13 0.045 319.372);
  --card: oklch(0.974 0.009 318.321);
  --card-foreground: oklch(0.116 0.039 320.358);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.257 314.609);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.723 0.147 87.135);
  --secondary-foreground: oklch(0.105 0.021 99.942);
  --accent: oklch(0.754 0.151 168.761);
  --accent-foreground: oklch(0.103 0.018 180.943);
  --destructive: oklch(0.358 0.124 35.165);
  --destructive-foreground: oklch(0.842 0.087 36.063);
  --ring: oklch(0.525 0.257 314.609);
  --chart-1: oklch(0.525 0.257 314.609);
  --chart-2: oklch(0.723 0.147 87.135);
  --chart-3: oklch(0.754 0.151 168.761);
  --chart-4: oklch(0.762 0.155 87.022);
  --chart-5: oklch(0.529 0.261 314.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.005 92.902);
  --muted-foreground: oklch(0.766 0.012 92.808);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.525 0.257 314.609);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.723 0.147 87.135);
  --secondary-foreground: oklch(0.105 0.021 99.942);
  --accent: oklch(0.754 0.151 168.761);
  --accent-foreground: oklch(0.103 0.018 180.943);
  --destructive: oklch(0.678 0.208 35.675);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.525 0.257 314.609);
  --chart-1: oklch(0.525 0.257 314.609);
  --chart-2: oklch(0.723 0.147 87.135);
  --chart-3: oklch(0.754 0.151 168.761);
  --chart-4: oklch(0.762 0.155 87.022);
  --chart-5: oklch(0.529 0.261 314.401);
}