Wire for shadcn/ui

Wire is a shadcn/ui theme built around a muted blue primary color (#494e69) with muted green accents (#4e6949). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted blue primary (#494e69) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#010204black
#fcfcfdwhite
Card
#f6f7fdghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f6f7fdghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#494e69darkslategray
#494e69darkslategray
Primary foreground
#f0f1f5whitesmoke
#f0f1f5whitesmoke
Secondary
#69494edimgray
#69494edimgray
Secondary foreground
#f5f0f1whitesmoke
#f5f0f1whitesmoke
Muted
#eee7e8linen
#181112black
Muted foreground
#5a4e50dimgray
#b1a5a7darkgray
Accent
#4e6949darkolivegreen
#4e6949darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7b2809saddlebrown
#ee531borangered
Destructive foreground
#facdbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#494e69darkslategray
#494e69darkslategray

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.71:1AAA
Primary button7.21:1AAA
Secondary button6.96:1AA
Muted text6.53:1AA
Accent6.07:1AA
Destructive6.75:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button7.21:1AAA
Secondary button6.96:1AA
Muted text7.81:1AAA
Accent6.07:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 278.259);
  --foreground: oklch(0.08 0.014 271.815);
  --muted: oklch(0.934 0.007 6.789);
  --muted-foreground: oklch(0.437 0.016 7.505);
  --popover: oklch(0.978 0.008 278.199);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.008 278.199);
  --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.431 0.046 276.551);
  --primary-foreground: oklch(0.958 0.005 278.238);
  --secondary: oklch(0.443 0.044 9.106);
  --secondary-foreground: oklch(0.959 0.005 6.727);
  --accent: oklch(0.491 0.06 140.815);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.399 0.122 37.941);
  --destructive-foreground: oklch(0.883 0.056 40.956);
  --ring: oklch(0.431 0.046 276.551);
  --chart-1: oklch(0.431 0.046 276.551);
  --chart-2: oklch(0.443 0.044 9.106);
  --chart-3: oklch(0.491 0.06 140.815);
  --chart-4: oklch(0.469 0.048 9.136);
  --chart-5: oklch(0.426 0.053 276.175);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 278.304);
  --muted: oklch(0.187 0.011 8.065);
  --muted-foreground: oklch(0.732 0.014 7.07);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.431 0.046 276.551);
  --primary-foreground: oklch(0.958 0.005 278.238);
  --secondary: oklch(0.443 0.044 9.106);
  --secondary-foreground: oklch(0.959 0.005 6.727);
  --accent: oklch(0.491 0.06 140.815);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.647 0.2 37.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.046 276.551);
  --chart-1: oklch(0.431 0.046 276.551);
  --chart-2: oklch(0.443 0.044 9.106);
  --chart-3: oklch(0.491 0.06 140.815);
  --chart-4: oklch(0.469 0.048 9.136);
  --chart-5: oklch(0.426 0.053 276.175);
}