Strength for shadcn/ui

Strength is a shadcn/ui theme built around a purple primary color (#c86ed8) with muted light purple accents (#dad1db). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c86ed8) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#070208black
#fdfcfdwhite
Card
#ffffffwhite
#030203black
Card foreground
#070208black
#fdfcfdwhite
Popover
#ffffffwhite
#030203black
Popover foreground
#070208black
#fdfcfdwhite
Primary
#c86ed8orchid
#c86ed8orchid
Primary foreground
#0e0410black
#0e0410black
Secondary
#e9e7e9lavender
#2d292edarkslategray
Secondary foreground
#514d51darkslategray
#c7c1c8silver
Muted
#eeeceewhitesmoke
#131113black
Muted foreground
#504153darkslategray
#bbacbesilver
Accent
#dad1dblightgrey
#443446darkslategray
Accent foreground
#423645darkslategray
#dad0dclightgrey
Destructive
#720404maroon
#e90707red
Destructive foreground
#fcabablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c86ed8orchid
#c86ed8orchid

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button6.41:1AA
Secondary button6.75:1AA
Muted text8.04:1AAA
Accent7.66:1AAA
Destructive6.68:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.41:1AA
Secondary button8.11:1AAA
Muted text8.75:1AAA
Accent7.69:1AAA
Destructive4.68:1AA

CSS variables

Paste this into your globals.css to use Strength in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.028 323.132);
  --muted: oklch(0.945 0.003 321.073);
  --muted-foreground: oklch(0.398 0.035 321.248);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.028 323.132);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.028 323.132);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.679 0.177 321.444);
  --primary-foreground: oklch(0.135 0.033 322.098);
  --secondary: oklch(0.93 0.002 321.07);
  --secondary-foreground: oklch(0.425 0.009 321.113);
  --accent: oklch(0.871 0.016 321.105);
  --accent-foreground: oklch(0.351 0.03 321.243);
  --destructive: oklch(0.348 0.14 28.729);
  --destructive-foreground: oklch(0.82 0.096 19.344);
  --ring: oklch(0.679 0.177 321.444);
  --chart-1: oklch(0.679 0.177 321.444);
  --chart-2: oklch(0.93 0.002 321.07);
  --chart-3: oklch(0.871 0.016 321.105);
  --chart-4: oklch(0.954 0.001 321.069);
  --chart-5: oklch(0.679 0.185 321.443);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 322.056);
  --foreground: oklch(0.992 0.003 321.071);
  --muted: oklch(0.18 0.005 321.128);
  --muted-foreground: oklch(0.763 0.03 321.15);
  --popover: oklch(0.088 0.01 322.056);
  --popover-foreground: oklch(0.992 0.003 321.071);
  --card: oklch(0.088 0.01 322.056);
  --card-foreground: oklch(0.992 0.003 321.071);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.679 0.177 321.444);
  --primary-foreground: oklch(0.135 0.033 322.098);
  --secondary: oklch(0.287 0.011 321.149);
  --secondary-foreground: oklch(0.817 0.012 321.096);
  --accent: oklch(0.35 0.038 321.283);
  --accent-foreground: oklch(0.87 0.02 321.115);
  --destructive: oklch(0.587 0.239 29.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.679 0.177 321.444);
  --chart-1: oklch(0.679 0.177 321.444);
  --chart-2: oklch(0.287 0.011 321.149);
  --chart-3: oklch(0.35 0.038 321.283);
  --chart-4: oklch(0.317 0.013 321.153);
  --chart-5: oklch(0.679 0.185 321.443);
}