Odd for shadcn/ui

Odd is a shadcn/ui theme built around a muted yellow primary color (#c5c1a0) with muted green accents (#b7c5a0). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the muted yellow primary (#c5c1a0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcf7snow
#000000black
Foreground
#000000black
#fbfbf9snow
Card
#fdfcf7snow
#000000black
Card foreground
#000000black
#fbfbf9snow
Popover
#fdfcf7snow
#000000black
Popover foreground
#000000black
#fbfbf9snow
Primary
#c5c1a0tan
#c5c1a0tan
Primary foreground
#201e13black
#201e13black
Secondary
#c5aea0tan
#c5aea0tan
Secondary foreground
#201813black
#201813black
Muted
#edeae8linen
#171412black
Muted foreground
#685c55dimgray
#aa9e97darkgray
Accent
#b7c5a0darkgray
#b7c5a0darkgray
Accent foreground
#1b2013black
#1b2013black
Destructive
#93320bsaddlebrown
#f06c38tomato
Destructive foreground
#fcdfd4antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5c1a0tan
#c5c1a0tan

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button9.12:1AAA
Secondary button8.28:1AAA
Muted text5.39:1AA
Accent9.10:1AAA
Destructive6.17:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button9.12:1AAA
Secondary button8.28:1AAA
Muted text7.03:1AAA
Accent9.10:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 100.435);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.939 0.004 54.45);
  --muted-foreground: oklch(0.484 0.019 53.979);
  --popover: oklch(0.991 0.007 100.435);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.007 100.435);
  --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.805 0.044 101.105);
  --primary-foreground: oklch(0.234 0.02 101.44);
  --secondary: oklch(0.767 0.033 53.93);
  --secondary-foreground: oklch(0.217 0.015 53.57);
  --accent: oklch(0.802 0.053 124.633);
  --accent-foreground: oklch(0.233 0.024 125.215);
  --destructive: oklch(0.454 0.139 38.667);
  --destructive-foreground: oklch(0.925 0.035 42.835);
  --ring: oklch(0.805 0.044 101.105);
  --chart-1: oklch(0.805 0.044 101.105);
  --chart-2: oklch(0.767 0.033 53.93);
  --chart-3: oklch(0.802 0.053 124.633);
  --chart-4: oklch(0.791 0.029 54.006);
  --chart-5: oklch(0.81 0.05 101.181);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.002 100.368);
  --muted: oklch(0.193 0.006 54.11);
  --muted-foreground: oklch(0.709 0.017 54.176);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.002 100.368);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.002 100.368);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.805 0.044 101.105);
  --primary-foreground: oklch(0.234 0.02 101.44);
  --secondary: oklch(0.767 0.033 53.93);
  --secondary-foreground: oklch(0.217 0.015 53.57);
  --accent: oklch(0.802 0.053 124.633);
  --accent-foreground: oklch(0.233 0.024 125.215);
  --destructive: oklch(0.684 0.176 40.703);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.805 0.044 101.105);
  --chart-1: oklch(0.805 0.044 101.105);
  --chart-2: oklch(0.767 0.033 53.93);
  --chart-3: oklch(0.802 0.053 124.633);
  --chart-4: oklch(0.791 0.029 54.006);
  --chart-5: oklch(0.81 0.05 101.181);
}