Unsteady for shadcn/ui

Unsteady is a shadcn/ui theme built around a neutral gray primary color (#9b978c) with muted light yellow accents (#d5cbb3). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the neutral gray primary (#9b978c) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0b0904black
Foreground
#050301black
#fcfbf8snow
Card
#fbf9f3floralwhite
#0f0c06black
Card foreground
#000000black
#fdfdfbsnow
Popover
#fbf9f3floralwhite
#0f0c06black
Popover foreground
#000000black
#fdfdfbsnow
Primary
#9b978crosybrown
#9b978crosybrown
Primary foreground
#000000black
#000000black
Secondary
#dcd7cblightgrey
#34322ddarkslategray
Secondary foreground
#463f30darkslategray
#cdcbc6lightgrey
Muted
#e7e4dfgainsboro
#201e18black
Muted foreground
#5b5549darkolivegreen
#b6b1a4darkgray
Accent
#d5cbb3silver
#4e483cdarkslategray
Accent foreground
#38301fdarkslategray
#e2e0dagainsboro
Destructive
#a4340ebrown
#ed5c2cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9b978crosybrown
#9b978crosybrown

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.96:1AAA
Primary button7.20:1AAA
Secondary button7.25:1AAA
Muted text5.84:1AA
Accent8.10:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.22:1AAA
Text on card19.17:1AAA
Primary button7.20:1AAA
Secondary button7.91:1AAA
Muted text7.82:1AAA
Accent6.84:1AA
Destructive6.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 87.448);
  --foreground: oklch(0.101 0.017 94.98);
  --muted: oklch(0.92 0.007 87.46);
  --muted-foreground: oklch(0.451 0.021 87.569);
  --popover: oklch(0.982 0.008 87.462);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 87.462);
  --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.677 0.016 87.525);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.88 0.017 87.507);
  --secondary-foreground: oklch(0.37 0.027 87.528);
  --accent: oklch(0.845 0.034 87.564);
  --accent-foreground: oklch(0.314 0.031 87.35);
  --destructive: oklch(0.487 0.155 36.769);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.016 87.525);
  --chart-1: oklch(0.677 0.016 87.525);
  --chart-2: oklch(0.88 0.017 87.507);
  --chart-3: oklch(0.845 0.034 87.564);
  --chart-4: oklch(0.901 0.014 87.492);
  --chart-5: oklch(0.681 0.023 87.551);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.013 91.774);
  --foreground: oklch(0.987 0.004 87.441);
  --muted: oklch(0.234 0.01 87.567);
  --muted-foreground: oklch(0.761 0.019 87.527);
  --popover: oklch(0.155 0.015 89.427);
  --popover-foreground: oklch(0.994 0.002 87.43);
  --card: oklch(0.155 0.015 89.427);
  --card-foreground: oklch(0.994 0.002 87.43);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.677 0.016 87.525);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.317 0.009 87.537);
  --secondary-foreground: oklch(0.842 0.008 87.466);
  --accent: oklch(0.405 0.021 87.569);
  --accent-foreground: oklch(0.906 0.009 87.468);
  --destructive: oklch(0.657 0.189 37.854);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.677 0.016 87.525);
  --chart-1: oklch(0.677 0.016 87.525);
  --chart-2: oklch(0.317 0.009 87.537);
  --chart-3: oklch(0.405 0.021 87.569);
  --chart-4: oklch(0.348 0.01 87.539);
  --chart-5: oklch(0.681 0.023 87.551);
}