Wiring for shadcn/ui

Wiring is a shadcn/ui theme built around a deep yellow primary color (#4f5228) with muted yellow accents (#caccad). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#4f5228) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#101103black
#f9f9f6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#101103black
#f9f9f6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#101103black
#f9f9f6whitesmoke
Primary
#4f5228darkolivegreen
#4f5228darkolivegreen
Primary foreground
#e2e4c8gainsboro
#e2e4c8gainsboro
Secondary
#d9dacdlightgrey
#31322adarkslategray
Secondary foreground
#424332darkslategray
#cbcbc2silver
Muted
#f5f6efwhitesmoke
#101009black
Muted foreground
#525440darkolivegreen
#bdbfabsilver
Accent
#caccadsilver
#494a36darkolivegreen
Accent foreground
#2b2c1bdarkslategray
#dedfd3gainsboro
Destructive
#970f0cdarkred
#ee2e2bcrimson
Destructive foreground
#fcdad9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f5228darkolivegreen
#4f5228darkolivegreen

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button6.28:1AA
Secondary button7.15:1AAA
Muted text7.13:1AAA
Accent8.62:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.28:1AA
Secondary button7.96:1AAA
Muted text10.18:1AAA
Accent6.75:1AA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.028 112.005);
  --muted: oklch(0.97 0.009 109.647);
  --muted-foreground: oklch(0.437 0.03 110.736);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.028 112.005);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.172 0.028 112.005);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.426 0.062 112.099);
  --primary-foreground: oklch(0.91 0.037 110.222);
  --secondary: oklch(0.885 0.018 109.845);
  --secondary-foreground: oklch(0.378 0.029 110.852);
  --accent: oklch(0.835 0.041 110.382);
  --accent-foreground: oklch(0.287 0.028 111.255);
  --destructive: oklch(0.431 0.168 28.581);
  --destructive-foreground: oklch(0.916 0.038 19.025);
  --ring: oklch(0.426 0.062 112.099);
  --chart-1: oklch(0.426 0.062 112.099);
  --chart-2: oklch(0.885 0.018 109.845);
  --chart-3: oklch(0.835 0.041 110.382);
  --chart-4: oklch(0.905 0.014 109.773);
  --chart-5: oklch(0.431 0.066 112.256);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 109.559);
  --muted: oklch(0.17 0.013 110.877);
  --muted-foreground: oklch(0.797 0.026 110.09);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.004 109.559);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.981 0.004 109.559);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.426 0.062 112.099);
  --primary-foreground: oklch(0.91 0.037 110.222);
  --secondary: oklch(0.312 0.013 110.227);
  --secondary-foreground: oklch(0.84 0.012 109.75);
  --accent: oklch(0.402 0.033 110.948);
  --accent-foreground: oklch(0.899 0.016 109.817);
  --destructive: oklch(0.614 0.226 27.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.062 112.099);
  --chart-1: oklch(0.426 0.062 112.099);
  --chart-2: oklch(0.312 0.013 110.227);
  --chart-3: oklch(0.402 0.033 110.948);
  --chart-4: oklch(0.344 0.015 110.251);
  --chart-5: oklch(0.431 0.066 112.256);
}