Wiry for shadcn/ui

Wiry is a shadcn/ui theme built around a near-black primary color (#161519) with muted indigo accents (#b4b1c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#161519) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05040bblack
Foreground
#06050fblack
#f6f5f9whitesmoke
Card
#ffffffwhite
#05040bblack
Card foreground
#06050fblack
#f6f5f9whitesmoke
Popover
#ffffffwhite
#05040bblack
Popover foreground
#06050fblack
#f6f5f9whitesmoke
Primary
#161519black
#161519black
Primary foreground
#acaab5darkgray
#acaab5darkgray
Secondary
#d1d0d8lightgrey
#2e2e33darkslategray
Secondary foreground
#373540darkslategray
#c7c6cdsilver
Muted
#d9d8dfgainsboro
#212027black
Muted foreground
#46435bdarkslategray
#a7a4bcdarkgray
Accent
#b4b1c9silver
#413f50darkslategray
Accent foreground
#1f1d2ablack
#dedde4gainsboro
Destructive
#981701darkred
#f42601orangered
Destructive foreground
#ffd4ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#161519black
#161519black

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.92:1AAA
Secondary button7.83:1AAA
Muted text6.68:1AA
Accent7.92:1AAA
Destructive6.30:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button7.92:1AAA
Secondary button7.99:1AAA
Muted text6.66:1AA
Accent7.60:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.025 289.107);
  --muted: oklch(0.884 0.01 291.572);
  --muted-foreground: oklch(0.396 0.04 289.798);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.025 289.107);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.025 289.107);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.199 0.006 291.169);
  --primary-foreground: oklch(0.744 0.016 291.377);
  --secondary: oklch(0.86 0.011 291.544);
  --secondary-foreground: oklch(0.336 0.018 290.723);
  --accent: oklch(0.77 0.034 290.937);
  --accent-foreground: oklch(0.24 0.024 289.765);
  --destructive: oklch(0.438 0.165 31.958);
  --destructive-foreground: oklch(0.904 0.05 29.762);
  --ring: oklch(0.199 0.006 291.169);
  --chart-1: oklch(0.199 0.006 291.169);
  --chart-2: oklch(0.86 0.011 291.544);
  --chart-3: oklch(0.77 0.034 290.937);
  --chart-4: oklch(0.885 0.009 291.593);
  --chart-5: oklch(0.197 0.009 290.888);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.019 290.074);
  --foreground: oklch(0.973 0.005 291.677);
  --muted: oklch(0.248 0.013 290.736);
  --muted-foreground: oklch(0.729 0.034 290.883);
  --popover: oklch(0.116 0.019 290.074);
  --popover-foreground: oklch(0.973 0.005 291.677);
  --card: oklch(0.116 0.019 290.074);
  --card-foreground: oklch(0.973 0.005 291.677);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.199 0.006 291.169);
  --primary-foreground: oklch(0.744 0.016 291.377);
  --secondary: oklch(0.302 0.01 291.124);
  --secondary-foreground: oklch(0.83 0.009 291.577);
  --accent: oklch(0.376 0.029 290.271);
  --accent-foreground: oklch(0.9 0.01 291.57);
  --destructive: oklch(0.618 0.238 31.298);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.199 0.006 291.169);
  --chart-1: oklch(0.199 0.006 291.169);
  --chart-2: oklch(0.302 0.01 291.124);
  --chart-3: oklch(0.376 0.029 290.271);
  --chart-4: oklch(0.331 0.012 291.102);
  --chart-5: oklch(0.197 0.009 290.888);
}