Lopsided for shadcn/ui

Lopsided is a shadcn/ui theme built around a muted yellow primary color (#8a806a) with muted light yellow accents (#dcd8d1). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted yellow primary (#8a806a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbf7snow
#000000black
Foreground
#0d0a02black
#fbfaf9snow
Card
#fdfbf7snow
#000000black
Card foreground
#0d0a02black
#fbfaf9snow
Popover
#fdfbf7snow
#000000black
Popover foreground
#0d0a02black
#fbfaf9snow
Primary
#8a806agray
#8a806agray
Primary foreground
#000000black
#000000black
Secondary
#e9e8e7linen
#181511black
Secondary foreground
#52504cdarkslategray
#bab2a0darkgray
Muted
#eae2d2gainsboro
#2d2515black
Muted foreground
#44413bdarkslategray
#c4c1bbsilver
Accent
#dcd8d1lightgrey
#2e291edarkslategray
Accent foreground
#454035darkslategray
#cdc4b2silver
Destructive
#8c3808saddlebrown
#f37730tomato
Destructive foreground
#fcdccabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a806agray
#8a806agray

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button5.36:1AA
Secondary button6.58:1AA
Muted text7.89:1AAA
Accent7.24:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button5.36:1AA
Secondary button8.61:1AAA
Muted text8.40:1AAA
Accent8.35:1AAA
Destructive7.50:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 84.565);
  --foreground: oklch(0.144 0.022 90.93);
  --muted: oklch(0.915 0.024 84.593);
  --muted-foreground: oklch(0.377 0.011 84.593);
  --popover: oklch(0.988 0.005 84.565);
  --popover-foreground: oklch(0.144 0.022 90.93);
  --card: oklch(0.988 0.005 84.565);
  --card-foreground: oklch(0.144 0.022 90.93);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.033 84.543);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.932 0.002 84.556);
  --secondary-foreground: oklch(0.432 0.007 84.586);
  --accent: oklch(0.883 0.01 84.578);
  --accent-foreground: oklch(0.373 0.019 84.56);
  --destructive: oklch(0.451 0.126 44.249);
  --destructive-foreground: oklch(0.917 0.043 51.979);
  --ring: oklch(0.602 0.033 84.543);
  --chart-1: oklch(0.602 0.033 84.543);
  --chart-2: oklch(0.932 0.002 84.556);
  --chart-3: oklch(0.883 0.01 84.578);
  --chart-4: oklch(0.955 0.001 84.554);
  --chart-5: oklch(0.608 0.041 84.485);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 84.557);
  --muted: oklch(0.27 0.03 83.964);
  --muted-foreground: oklch(0.811 0.009 84.577);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 84.557);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 84.557);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.033 84.543);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.199 0.009 84.573);
  --secondary-foreground: oklch(0.765 0.026 84.591);
  --accent: oklch(0.283 0.02 84.458);
  --accent-foreground: oklch(0.822 0.026 84.592);
  --destructive: oklch(0.704 0.172 46.883);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.602 0.033 84.543);
  --chart-1: oklch(0.602 0.033 84.543);
  --chart-2: oklch(0.199 0.009 84.573);
  --chart-3: oklch(0.283 0.02 84.458);
  --chart-4: oklch(0.234 0.012 84.558);
  --chart-5: oklch(0.608 0.041 84.485);
}