Symmetry for shadcn/ui

Symmetry is a shadcn/ui theme built around a near-black primary color (#0d020c) with muted purple accents (#c6b3c4). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the near-black primary (#0d020c) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#0b040ablack
Foreground
#150513black
#f9f6f9whitesmoke
Card
#fdf7fdsnow
#0b040ablack
Card foreground
#150513black
#f9f6f9whitesmoke
Popover
#fdf7fdsnow
#0b040ablack
Popover foreground
#150513black
#f9f6f9whitesmoke
Primary
#0d020cblack
#0d020cblack
Primary foreground
#e260d7orchid
#e260d7orchid
Secondary
#d8d4d8lightgrey
#201d20black
Secondary foreground
#403a40darkslategray
#bab5basilver
Muted
#eae1ealavender
#1e151eblack
Muted foreground
#484148darkslategray
#beb7bdsilver
Accent
#c6b3c4silver
#392d38darkslategray
Accent foreground
#291f28darkslategray
#d2c6d1thistle
Destructive
#b20701darkred
#fe0a01red
Destructive foreground
#ffe6e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d020cblack
#0d020cblack

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button6.67:1AA
Secondary button7.56:1AAA
Muted text7.72:1AAA
Accent8.08:1AAA
Destructive6.07:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button6.67:1AA
Secondary button8.25:1AAA
Muted text9.07:1AAA
Accent7.91:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 328.171);
  --foreground: oklch(0.151 0.041 330.411);
  --muted: oklch(0.919 0.016 328.242);
  --muted-foreground: oklch(0.386 0.014 328.434);
  --popover: oklch(0.982 0.01 328.171);
  --popover-foreground: oklch(0.151 0.041 330.411);
  --card: oklch(0.982 0.01 328.171);
  --card-foreground: oklch(0.151 0.041 330.411);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.122 0.035 329.979);
  --primary-foreground: oklch(0.692 0.212 330.94);
  --secondary: oklch(0.875 0.007 328.144);
  --secondary-foreground: oklch(0.357 0.013 328.427);
  --accent: oklch(0.789 0.031 328.472);
  --accent-foreground: oklch(0.254 0.022 328.947);
  --destructive: oklch(0.481 0.194 29.589);
  --destructive-foreground: oklch(0.946 0.027 20.016);
  --ring: oklch(0.122 0.035 329.979);
  --chart-1: oklch(0.122 0.035 329.979);
  --chart-2: oklch(0.875 0.007 328.144);
  --chart-3: oklch(0.789 0.031 328.472);
  --chart-4: oklch(0.899 0.005 328.127);
  --chart-5: oklch(0.122 0.037 330.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.021 329.124);
  --foreground: oklch(0.976 0.006 328.124);
  --muted: oklch(0.21 0.023 329.134);
  --muted-foreground: oklch(0.786 0.012 328.218);
  --popover: oklch(0.126 0.021 329.124);
  --popover-foreground: oklch(0.976 0.006 328.124);
  --card: oklch(0.126 0.021 329.124);
  --card-foreground: oklch(0.976 0.006 328.124);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.122 0.035 329.979);
  --primary-foreground: oklch(0.692 0.212 330.94);
  --secondary: oklch(0.236 0.006 328.309);
  --secondary-foreground: oklch(0.779 0.01 328.194);
  --accent: oklch(0.315 0.024 328.825);
  --accent-foreground: oklch(0.84 0.019 328.294);
  --destructive: oklch(0.627 0.255 29.461);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.122 0.035 329.979);
  --chart-1: oklch(0.122 0.035 329.979);
  --chart-2: oklch(0.236 0.006 328.309);
  --chart-3: oklch(0.315 0.024 328.825);
  --chart-4: oklch(0.268 0.007 328.326);
  --chart-5: oklch(0.122 0.037 330.071);
}