Unsteady for shadcn/ui

Unsteady is a shadcn/ui theme built around a red primary color (#ad1f1f) with teal accents (#1fadad). The light mode uses a neutral background (#fcf7f7). Dark mode keeps the red primary (#ad1f1f) on a red-tinted background (#0f0606).

Color palette

TokenLightDark
Background
#fcf7f7snow
#0f0606black
Foreground
#000000black
#fbf9f9snow
Card
#fbf4f4lavenderblush
#120707black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fbf4f4lavenderblush
#120707black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#ad1f1ffirebrick
#ad1f1ffirebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1fadadlightseagreen
#1fadadlightseagreen
Secondary foreground
#000000black
#000000black
Muted
#dce5e5gainsboro
#1a2323black
Muted foreground
#465353darkslategray
#acb9b9silver
Accent
#1fadadlightseagreen
#1fadadlightseagreen
Accent foreground
#000000black
#000000black
Destructive
#b43613firebrick
#eb633dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ad1f1ffirebrick
#ad1f1ffirebrick

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.29:1AAA
Primary button7.00:1AAA
Secondary button7.67:1AAA
Muted text6.24:1AA
Accent7.67:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.34:1AAA
Primary button7.00:1AAA
Secondary button7.67:1AAA
Muted text7.92:1AAA
Accent7.67:1AAA
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 17.25);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.01 196.984);
  --muted-foreground: oklch(0.432 0.017 196.528);
  --popover: oklch(0.972 0.008 17.298);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.008 17.298);
  --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.485 0.178 27.04);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.681 0.111 194.863);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.681 0.111 194.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.517 0.168 35.177);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.485 0.178 27.04);
  --chart-1: oklch(0.485 0.178 27.04);
  --chart-2: oklch(0.681 0.111 194.863);
  --chart-3: oklch(0.681 0.111 194.863);
  --chart-4: oklch(0.718 0.117 194.859);
  --chart-5: oklch(0.489 0.183 27.397);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.019 19.769);
  --foreground: oklch(0.983 0.003 17.202);
  --muted: oklch(0.248 0.013 196.341);
  --muted-foreground: oklch(0.776 0.015 196.843);
  --popover: oklch(0.147 0.022 19.981);
  --popover-foreground: oklch(0.992 0.001 17.18);
  --card: oklch(0.147 0.022 19.981);
  --card-foreground: oklch(0.992 0.001 17.18);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.485 0.178 27.04);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.681 0.111 194.863);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.681 0.111 194.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.664 0.177 36.241);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.485 0.178 27.04);
  --chart-1: oklch(0.485 0.178 27.04);
  --chart-2: oklch(0.681 0.111 194.863);
  --chart-3: oklch(0.681 0.111 194.863);
  --chart-4: oklch(0.718 0.117 194.859);
  --chart-5: oklch(0.489 0.183 27.397);
}