Unsteady for shadcn/ui

Unsteady is a shadcn/ui theme built around a yellow primary color (#c1c125) with green accents (#73c125). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#c1c125) on a neutral background (#080802).

Color palette

TokenLightDark
Background
#fefefbwhite
#080802black
Foreground
#000000black
#fdfdfcwhite
Card
#fcfcf8snow
#0c0c03black
Card foreground
#000000black
#ffffffwhite
Popover
#fefefbwhite
#080802black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#c1c125goldenrod
#c1c125goldenrod
Primary foreground
#151504black
#151504black
Secondary
#c17325chocolate
#c17325chocolate
Secondary foreground
#000000black
#000000black
Muted
#e3e0degainsboro
#211f1cblack
Muted foreground
#4a453fdarkslategray
#c0bab5silver
Accent
#73c125yellowgreen
#73c125yellowgreen
Accent foreground
#0d1504black
#0d1504black
Destructive
#b22a01firebrick
#fe5b2atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1c125goldenrod
#c1c125goldenrod

Contrast

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

Light mode
Text on background20.71:1AAA
Text on card20.43:1AAA
Primary button9.55:1AAA
Secondary button5.72:1AA
Muted text7.23:1AAA
Accent8.31:1AAA
Destructive6.52:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.62:1AAA
Primary button9.55:1AAA
Secondary button5.72:1AA
Muted text8.58:1AAA
Accent8.31:1AAA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 106.452);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.909 0.004 67.777);
  --muted-foreground: oklch(0.393 0.012 67.475);
  --popover: oklch(0.995 0.003 106.452);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.006 106.505);
  --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.785 0.162 109.617);
  --primary-foreground: oklch(0.192 0.032 109.093);
  --secondary: oklch(0.628 0.132 60.385);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.732 0.195 133.484);
  --accent-foreground: oklch(0.183 0.037 129.97);
  --destructive: oklch(0.501 0.177 34.55);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.785 0.162 109.617);
  --chart-1: oklch(0.785 0.162 109.617);
  --chart-2: oklch(0.628 0.132 60.385);
  --chart-3: oklch(0.732 0.195 133.484);
  --chart-4: oklch(0.658 0.138 60.29);
  --chart-5: oklch(0.795 0.166 109.646);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.018 108.688);
  --foreground: oklch(0.995 0.002 106.445);
  --muted: oklch(0.239 0.005 67.576);
  --muted-foreground: oklch(0.792 0.01 67.683);
  --popover: oklch(0.132 0.018 108.688);
  --popover-foreground: oklch(0.995 0.002 106.445);
  --card: oklch(0.151 0.021 108.698);
  --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.785 0.162 109.617);
  --primary-foreground: oklch(0.192 0.032 109.093);
  --secondary: oklch(0.628 0.132 60.385);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.732 0.195 133.484);
  --accent-foreground: oklch(0.183 0.037 129.97);
  --destructive: oklch(0.683 0.207 36.57);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.785 0.162 109.617);
  --chart-1: oklch(0.785 0.162 109.617);
  --chart-2: oklch(0.628 0.132 60.385);
  --chart-3: oklch(0.732 0.195 133.484);
  --chart-4: oklch(0.658 0.138 60.29);
  --chart-5: oklch(0.795 0.166 109.646);
}