Unsteady for shadcn/ui

Unsteady is a shadcn/ui theme built around a green primary color (#39a117) with purple accents (#7e17a1). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#39a117) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#fcfefbwhite
#060a05black
Foreground
#081005black
#f6faf5whitesmoke
Card
#fcfefbwhite
#060a05black
Card foreground
#081005black
#f6faf5whitesmoke
Popover
#fcfefbwhite
#060a05black
Popover foreground
#081005black
#f6faf5whitesmoke
Primary
#39a117forestgreen
#39a117forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7e17a1darkmagenta
#7e17a1darkmagenta
Secondary foreground
#f9edfclavenderblush
#f9edfclavenderblush
Muted
#ddd7e0gainsboro
#261f28darkslategray
Muted foreground
#5f4e65dimgray
#ac9ab1darkgray
Accent
#7e17a1darkmagenta
#7e17a1darkmagenta
Accent foreground
#f9edfclavenderblush
#f9edfclavenderblush
Destructive
#891506darkred
#f5260aorangered
Destructive foreground
#fdcbc4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#39a117forestgreen
#39a117forestgreen

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button3.35:1AA Large
Secondary button7.34:1AAA
Muted text5.38:1AA
Accent7.34:1AAA
Destructive6.67:1AA
Dark mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button3.35:1AA Large
Secondary button7.34:1AAA
Muted text6.10:1AA
Accent7.34:1AAA
Destructive4.07:1AA Large

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.005 137.772);
  --foreground: oklch(0.158 0.027 136.778);
  --muted: oklch(0.887 0.013 317.738);
  --muted-foreground: oklch(0.449 0.043 317.602);
  --popover: oklch(0.995 0.005 137.772);
  --popover-foreground: oklch(0.158 0.027 136.778);
  --card: oklch(0.995 0.005 137.772);
  --card-foreground: oklch(0.158 0.027 136.778);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.623 0.191 139.804);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.205 315.197);
  --secondary-foreground: oklch(0.96 0.024 317.723);
  --accent: oklch(0.451 0.205 315.197);
  --accent-foreground: oklch(0.96 0.024 317.723);
  --destructive: oklch(0.407 0.152 31.056);
  --destructive-foreground: oklch(0.883 0.058 27.011);
  --ring: oklch(0.623 0.191 139.804);
  --chart-1: oklch(0.623 0.191 139.804);
  --chart-2: oklch(0.451 0.205 315.197);
  --chart-3: oklch(0.451 0.205 315.197);
  --chart-4: oklch(0.478 0.218 315.144);
  --chart-5: oklch(0.63 0.195 139.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 136.69);
  --foreground: oklch(0.981 0.008 137.777);
  --muted: oklch(0.252 0.018 317.643);
  --muted-foreground: oklch(0.709 0.039 317.674);
  --popover: oklch(0.139 0.015 136.69);
  --popover-foreground: oklch(0.981 0.008 137.777);
  --card: oklch(0.139 0.015 136.69);
  --card-foreground: oklch(0.981 0.008 137.777);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.623 0.191 139.804);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.205 315.197);
  --secondary-foreground: oklch(0.96 0.024 317.723);
  --accent: oklch(0.451 0.205 315.197);
  --accent-foreground: oklch(0.96 0.024 317.723);
  --destructive: oklch(0.62 0.239 30.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.623 0.191 139.804);
  --chart-1: oklch(0.623 0.191 139.804);
  --chart-2: oklch(0.451 0.205 315.197);
  --chart-3: oklch(0.451 0.205 315.197);
  --chart-4: oklch(0.478 0.218 315.144);
  --chart-5: oklch(0.63 0.195 139.931);
}