Asymmetry for shadcn/ui

Asymmetry is a shadcn/ui theme built around a yellow primary color (#7a6224) with green accents (#677a24). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the yellow primary (#7a6224) on a yellow-tinted background (#0e0c07).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0e0c07black
Foreground
#000000black
#fdfdfcwhite
Card
#fbfbf8snow
#110f08black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfcwhite
#0e0c07black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#7a6224saddlebrown
#7a6224saddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7a3724saddlebrown
#7a3724saddlebrown
Secondary foreground
#f4e1dcmistyrose
#f4e1dcmistyrose
Muted
#e5dad6gainsboro
#291d1ablack
Muted foreground
#444140darkslategray
#bfbcbbsilver
Accent
#677a24olivedrab
#677a24olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#790d0bmaroon
#ee4744tomato
Destructive foreground
#f9bfbelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a6224saddlebrown
#7a6224saddlebrown

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.22:1AAA
Primary button5.86:1AA
Secondary button6.95:1AA
Muted text7.37:1AAA
Accent4.79:1AA
Destructive7.03:1AAA
Dark mode
Text on background19.23:1AAA
Text on card19.17:1AAA
Primary button5.86:1AA
Secondary button6.95:1AA
Muted text8.67:1AAA
Accent4.79:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 88.801);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.014 35.967);
  --muted-foreground: oklch(0.379 0.005 35.975);
  --popover: oklch(0.993 0.002 88.801);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.003 88.812);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.085 87.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.098 36.385);
  --secondary-foreground: oklch(0.924 0.023 35.952);
  --accent: oklch(0.546 0.112 120.797);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.37 0.141 28.246);
  --destructive-foreground: oklch(0.856 0.067 19.681);
  --ring: oklch(0.506 0.085 87.144);
  --chart-1: oklch(0.506 0.085 87.144);
  --chart-2: oklch(0.422 0.098 36.385);
  --chart-3: oklch(0.546 0.112 120.797);
  --chart-4: oklch(0.45 0.106 36.38);
  --chart-5: oklch(0.511 0.088 86.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.012 90.361);
  --foreground: oklch(0.994 0.002 88.803);
  --muted: oklch(0.244 0.02 36.001);
  --muted-foreground: oklch(0.796 0.004 35.996);
  --popover: oklch(0.154 0.012 90.361);
  --popover-foreground: oklch(0.994 0.002 88.803);
  --card: oklch(0.168 0.014 89.264);
  --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.506 0.085 87.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.098 36.385);
  --secondary-foreground: oklch(0.924 0.023 35.952);
  --accent: oklch(0.546 0.112 120.797);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.204 25.882);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.085 87.144);
  --chart-1: oklch(0.506 0.085 87.144);
  --chart-2: oklch(0.422 0.098 36.385);
  --chart-3: oklch(0.546 0.112 120.797);
  --chart-4: oklch(0.45 0.106 36.38);
  --chart-5: oklch(0.511 0.088 86.851);
}