Unsteady for shadcn/ui

Unsteady is a shadcn/ui theme built around an indigo primary color (#342f6f) with violet accents (#542f6f). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the indigo primary (#342f6f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#000000black
Foreground
#070613black
#f6f6f8whitesmoke
Card
#f4f3fcghostwhite
#030303black
Card foreground
#06050fblack
#f9f9fbghostwhite
Popover
#f7f7fdghostwhite
#000000black
Popover foreground
#070613black
#f6f6f8whitesmoke
Primary
#342f6fmidnightblue
#342f6fmidnightblue
Primary foreground
#e0dff1lavender
#e0dff1lavender
Secondary
#2f4a6fdarkslategray
#2f4a6fdarkslategray
Secondary foreground
#dfe6f1lavender
#dfe6f1lavender
Muted
#eff2f5whitesmoke
#0a0c10black
Muted foreground
#3d4652darkslategray
#adb6c2silver
Accent
#542f6fdarkslateblue
#542f6fdarkslateblue
Accent foreground
#eadff1lavender
#eadff1lavender
Destructive
#ca1f16firebrick
#e93e35crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#342f6fmidnightblue
#342f6fmidnightblue

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.38:1AAA
Primary button8.99:1AAA
Secondary button7.20:1AAA
Muted text8.50:1AAA
Accent8.10:1AAA
Destructive5.64:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.66:1AAA
Primary button8.99:1AAA
Secondary button7.20:1AAA
Muted text9.54:1AAA
Accent8.10:1AAA
Destructive4.04: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.978 0.008 290.098);
  --foreground: oklch(0.135 0.029 286.447);
  --muted: oklch(0.96 0.005 256.673);
  --muted-foreground: oklch(0.39 0.024 256.806);
  --popover: oklch(0.978 0.008 290.098);
  --popover-foreground: oklch(0.135 0.029 286.447);
  --card: oklch(0.967 0.012 290.02);
  --card-foreground: oklch(0.124 0.025 287.155);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.348 0.108 282.96);
  --primary-foreground: oklch(0.909 0.026 289.713);
  --secondary: oklch(0.405 0.072 256.959);
  --secondary-foreground: oklch(0.924 0.017 256.719);
  --accent: oklch(0.383 0.112 308.994);
  --accent-foreground: oklch(0.917 0.028 311.48);
  --destructive: oklch(0.539 0.204 29.173);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.348 0.108 282.96);
  --chart-1: oklch(0.348 0.108 282.96);
  --chart-2: oklch(0.405 0.072 256.959);
  --chart-3: oklch(0.383 0.112 308.994);
  --chart-4: oklch(0.431 0.078 256.966);
  --chart-5: oklch(0.343 0.116 282.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 290.192);
  --muted: oklch(0.155 0.008 256.815);
  --muted-foreground: oklch(0.773 0.02 256.741);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 290.192);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 290.21);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.348 0.108 282.96);
  --primary-foreground: oklch(0.909 0.026 289.713);
  --secondary: oklch(0.405 0.072 256.959);
  --secondary-foreground: oklch(0.924 0.017 256.719);
  --accent: oklch(0.383 0.112 308.994);
  --accent-foreground: oklch(0.917 0.028 311.48);
  --destructive: oklch(0.619 0.208 28.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.348 0.108 282.96);
  --chart-1: oklch(0.348 0.108 282.96);
  --chart-2: oklch(0.405 0.072 256.959);
  --chart-3: oklch(0.383 0.112 308.994);
  --chart-4: oklch(0.431 0.078 256.966);
  --chart-5: oklch(0.343 0.116 282.176);
}