Strong for shadcn/ui

Strong is a shadcn/ui theme built around a muted deep purple primary color (#0c080b) with muted light purple accents (#eae6e9). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#0c080b) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#040103black
Foreground
#160411black
#ffffffwhite
Card
#fcf2falavenderblush
#070306black
Card foreground
#11030eblack
#ffffffwhite
Popover
#fcf2falavenderblush
#070306black
Popover foreground
#11030eblack
#ffffffwhite
Primary
#0c080bblack
#0c080bblack
Primary foreground
#b690addarkgray
#b690addarkgray
Secondary
#eae6e9lavender
#1c171bblack
Secondary foreground
#564853darkslategray
#baabb6darkgray
Muted
#ecd4e6gainsboro
#2b1325black
Muted foreground
#4c3847darkslategray
#c7b3c2silver
Accent
#eae6e9lavender
#1c171bblack
Accent foreground
#564853darkslategray
#baabb6darkgray
Destructive
#cf1702firebrick
#fc1c03red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c080bblack
#0c080bblack

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.47:1AAA
Primary button7.17:1AAA
Secondary button6.94:1AA
Muted text7.73:1AAA
Accent6.94:1AA
Destructive5.56:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.48:1AAA
Primary button7.17:1AAA
Secondary button8.07:1AAA
Muted text8.74:1AAA
Accent8.07:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 334.041);
  --foreground: oklch(0.149 0.043 337.342);
  --muted: oklch(0.896 0.035 334.528);
  --muted-foreground: oklch(0.37 0.037 335.466);
  --popover: oklch(0.972 0.014 334.126);
  --popover-foreground: oklch(0.135 0.038 336.539);
  --card: oklch(0.972 0.014 334.126);
  --card-foreground: oklch(0.135 0.038 336.539);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.142 0.01 334.772);
  --primary-foreground: oklch(0.698 0.061 335.277);
  --secondary: oklch(0.929 0.006 333.987);
  --secondary-foreground: oklch(0.42 0.026 334.867);
  --accent: oklch(0.929 0.006 333.987);
  --accent-foreground: oklch(0.42 0.026 334.867);
  --destructive: oklch(0.543 0.214 30.398);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.142 0.01 334.772);
  --chart-1: oklch(0.142 0.01 334.772);
  --chart-2: oklch(0.929 0.006 333.987);
  --chart-3: oklch(0.929 0.006 333.987);
  --chart-4: oklch(0.953 0.004 333.948);
  --chart-5: oklch(0.142 0.012 334.889);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.013 334.413);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.049 337.198);
  --muted-foreground: oklch(0.787 0.03 334.515);
  --popover: oklch(0.11 0.017 334.413);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.11 0.017 334.413);
  --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.142 0.01 334.772);
  --primary-foreground: oklch(0.698 0.061 335.277);
  --secondary: oklch(0.212 0.011 334.714);
  --secondary-foreground: oklch(0.757 0.024 334.395);
  --accent: oklch(0.212 0.011 334.714);
  --accent-foreground: oklch(0.757 0.024 334.395);
  --destructive: oklch(0.63 0.249 30.257);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.142 0.01 334.772);
  --chart-1: oklch(0.142 0.01 334.772);
  --chart-2: oklch(0.212 0.011 334.714);
  --chart-3: oklch(0.212 0.011 334.714);
  --chart-4: oklch(0.244 0.014 334.788);
  --chart-5: oklch(0.142 0.012 334.889);
}