Symmetry for shadcn/ui

Symmetry is a shadcn/ui theme built around a muted violet primary color (#b1a4c1) with muted green accents (#a4c1b1). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#b1a4c1) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#07050ablack
Foreground
#0c0416black
#faf8fbghostwhite
Card
#fcfcfdwhite
#07050ablack
Card foreground
#0c0416black
#faf8fbghostwhite
Popover
#fcfcfdwhite
#07050ablack
Popover foreground
#0c0416black
#faf8fbghostwhite
Primary
#b1a4c1darkgray
#b1a4c1darkgray
Primary foreground
#19151eblack
#19151eblack
Secondary
#c1b1a4darkgray
#c1b1a4darkgray
Secondary foreground
#1e1915black
#1e1915black
Muted
#e5dad2gainsboro
#2d231ablack
Muted foreground
#585755dimgray
#aaa8a7darkgray
Accent
#a4c1b1darkgray
#a4c1b1darkgray
Accent foreground
#151e19black
#151e19black
Destructive
#ce2909firebrick
#f75a3btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1a4c1darkgray
#b1a4c1darkgray

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.66:1AAA
Secondary button8.37:1AAA
Muted text5.26:1AA
Accent8.80:1AAA
Destructive5.32:1AA
Dark mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.66:1AAA
Secondary button8.37:1AAA
Muted text6.49:1AA
Accent8.80:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 306.394);
  --foreground: oklch(0.134 0.043 304.257);
  --muted: oklch(0.895 0.016 61.955);
  --muted-foreground: oklch(0.456 0.004 62.091);
  --popover: oklch(0.991 0.003 306.394);
  --popover-foreground: oklch(0.134 0.043 304.257);
  --card: oklch(0.991 0.003 306.394);
  --card-foreground: oklch(0.134 0.043 304.257);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.739 0.044 305.674);
  --primary-foreground: oklch(0.204 0.02 305.167);
  --secondary: oklch(0.77 0.026 61.736);
  --secondary-foreground: oklch(0.218 0.012 61.429);
  --accent: oklch(0.785 0.039 161.339);
  --accent-foreground: oklch(0.225 0.017 160.539);
  --destructive: oklch(0.551 0.203 32.233);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.044 305.674);
  --chart-1: oklch(0.739 0.044 305.674);
  --chart-2: oklch(0.77 0.026 61.736);
  --chart-3: oklch(0.785 0.039 161.339);
  --chart-4: oklch(0.794 0.023 61.799);
  --chart-5: oklch(0.735 0.051 305.549);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.015 307.175);
  --foreground: oklch(0.982 0.004 306.374);
  --muted: oklch(0.264 0.022 60.962);
  --muted-foreground: oklch(0.733 0.003 62.137);
  --popover: oklch(0.123 0.015 307.175);
  --popover-foreground: oklch(0.982 0.004 306.374);
  --card: oklch(0.123 0.015 307.175);
  --card-foreground: oklch(0.982 0.004 306.374);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.044 305.674);
  --primary-foreground: oklch(0.204 0.02 305.167);
  --secondary: oklch(0.77 0.026 61.736);
  --secondary-foreground: oklch(0.218 0.012 61.429);
  --accent: oklch(0.785 0.039 161.339);
  --accent-foreground: oklch(0.225 0.017 160.539);
  --destructive: oklch(0.672 0.197 33.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.739 0.044 305.674);
  --chart-1: oklch(0.739 0.044 305.674);
  --chart-2: oklch(0.77 0.026 61.736);
  --chart-3: oklch(0.785 0.039 161.339);
  --chart-4: oklch(0.794 0.023 61.799);
  --chart-5: oklch(0.735 0.051 305.549);
}