All for shadcn/ui

All is a shadcn/ui theme built around a muted orange primary color (#987b67) with muted yellow accents (#989367). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted orange primary (#987b67) on an orange-tinted background (#0f0905).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0f0905black
Foreground
#040201black
#ffffffwhite
Card
#fdfcfcsnow
#0f0905black
Card foreground
#040201black
#ffffffwhite
Popover
#fdfcfcsnow
#0f0905black
Popover foreground
#040201black
#ffffffwhite
Primary
#987b67gray
#987b67gray
Primary foreground
#000000black
#000000black
Secondary
#98676cgray
#98676cgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0eaeblinen
#150f0fblack
Muted foreground
#584648darkslategray
#b9a7a9darkgray
Accent
#989367gray
#989367gray
Accent foreground
#000000black
#000000black
Destructive
#9c3302saddlebrown
#f14f04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#987b67gray
#987b67gray

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button5.34:1AA
Secondary button4.66:1AA
Muted text7.41:1AAA
Accent6.69:1AA
Destructive7.28:1AAA
Dark mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button5.34:1AA
Secondary button4.66:1AA
Muted text8.28:1AAA
Accent6.69:1AA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 56.413);
  --foreground: oklch(0.092 0.012 66.201);
  --muted: oklch(0.942 0.007 10.237);
  --muted-foreground: oklch(0.414 0.024 11.397);
  --popover: oklch(0.992 0.002 56.413);
  --popover-foreground: oklch(0.092 0.012 66.201);
  --card: oklch(0.992 0.002 56.413);
  --card-foreground: oklch(0.092 0.012 66.201);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.046 55.357);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.567 0.063 12.662);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.656 0.061 102.552);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.471 0.148 39.401);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.046 55.357);
  --chart-1: oklch(0.604 0.046 55.357);
  --chart-2: oklch(0.567 0.063 12.662);
  --chart-3: oklch(0.656 0.061 102.552);
  --chart-4: oklch(0.594 0.058 12.346);
  --chart-5: oklch(0.606 0.053 55.17);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.014 60.414);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.01 11.425);
  --muted-foreground: oklch(0.745 0.02 10.699);
  --popover: oklch(0.147 0.014 60.414);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.147 0.014 60.414);
  --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.604 0.046 55.357);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.567 0.063 12.662);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.656 0.061 102.552);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.647 0.209 38.319);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.046 55.357);
  --chart-1: oklch(0.604 0.046 55.357);
  --chart-2: oklch(0.567 0.063 12.662);
  --chart-3: oklch(0.656 0.061 102.552);
  --chart-4: oklch(0.594 0.058 12.346);
  --chart-5: oklch(0.606 0.053 55.17);
}