Strong for shadcn/ui

Strong is a shadcn/ui theme built around a neutral gray primary color (#98969c) with muted light violet accents (#dad7e0). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the neutral gray primary (#98969c) on a violet-tinted background (#080410).

Color palette

TokenLightDark
Background
#f9f6fdghostwhite
#080410black
Foreground
#020104black
#ffffffwhite
Card
#f9f6fdghostwhite
#080410black
Card foreground
#020104black
#ffffffwhite
Popover
#f9f6fdghostwhite
#080410black
Popover foreground
#020104black
#ffffffwhite
Primary
#98969cdarkgray
#98969cdarkgray
Primary foreground
#000000black
#000000black
Secondary
#e8e7e9lavender
#211f23black
Secondary foreground
#4d4a54darkslategray
#b9b7besilver
Muted
#efeef2whitesmoke
#0f0d11black
Muted foreground
#605a6cdimgray
#9893a5darkgray
Accent
#dad7e0gainsboro
#2c2932darkslategray
Accent foreground
#3f3a4bdarkslategray
#c5c1cdsilver
Destructive
#c41212firebrick
#ea1a1acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#98969cdarkgray
#98969cdarkgray

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.17:1AAA
Secondary button7.01:1AAA
Muted text5.70:1AA
Accent7.67:1AAA
Destructive6.09:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.17:1AAA
Secondary button8.21:1AAA
Muted text6.49:1AA
Accent8.04:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.009 300.611);
  --foreground: oklch(0.074 0.023 301.338);
  --muted: oklch(0.95 0.006 300.666);
  --muted-foreground: oklch(0.481 0.029 299.764);
  --popover: oklch(0.978 0.009 300.611);
  --popover-foreground: oklch(0.074 0.023 301.338);
  --card: oklch(0.978 0.009 300.611);
  --card-foreground: oklch(0.074 0.023 301.338);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.676 0.009 300.545);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.928 0.004 300.7);
  --secondary-foreground: oklch(0.417 0.016 300.133);
  --accent: oklch(0.883 0.013 300.526);
  --accent-foreground: oklch(0.36 0.03 299.371);
  --destructive: oklch(0.521 0.205 28.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.009 300.545);
  --chart-1: oklch(0.676 0.009 300.545);
  --chart-2: oklch(0.928 0.004 300.7);
  --chart-3: oklch(0.883 0.013 300.526);
  --chart-4: oklch(0.952 0.003 300.724);
  --chart-5: oklch(0.67 0.018 300.317);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.029 299.715);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.009 299.843);
  --muted-foreground: oklch(0.673 0.027 300.11);
  --popover: oklch(0.126 0.029 299.715);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.029 299.715);
  --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.676 0.009 300.545);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.244 0.006 300.336);
  --secondary-foreground: oklch(0.782 0.01 300.559);
  --accent: oklch(0.289 0.017 299.795);
  --accent-foreground: oklch(0.818 0.016 300.446);
  --destructive: oklch(0.596 0.233 28.254);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.009 300.545);
  --chart-1: oklch(0.676 0.009 300.545);
  --chart-2: oklch(0.244 0.006 300.336);
  --chart-3: oklch(0.289 0.017 299.795);
  --chart-4: oklch(0.275 0.008 300.309);
  --chart-5: oklch(0.67 0.018 300.317);
}