Interconnection for shadcn/ui

Interconnection is a shadcn/ui theme built around a neutral gray primary color (#82848c) with neutral gray accents (#8c8b82). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#82848c) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#ffffffwhite
#020203black
Foreground
#000000black
#f5f5fawhitesmoke
Card
#fcfcfcsnow
#030407black
Card foreground
#000000black
#f8f9fcghostwhite
Popover
#fcfcfcsnow
#030407black
Popover foreground
#000000black
#f8f9fcghostwhite
Primary
#82848cgray
#82848cgray
Primary foreground
#000000black
#000000black
Secondary
#8c8b82gray
#8c8b82gray
Secondary foreground
#000000black
#000000black
Muted
#f3f2edwhitesmoke
#12110cblack
Muted foreground
#5d5c56dimgray
#a9a8a2darkgray
Accent
#8c8b82gray
#8c8b82gray
Accent foreground
#000000black
#000000black
Destructive
#682503maroon
#f25607orangered
Destructive foreground
#fcbfa1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#82848cgray
#82848cgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.61:1AA
Secondary button6.11:1AA
Muted text5.97:1AA
Accent6.11:1AA
Destructive7.08:1AAA
Dark mode
Text on background19.09:1AAA
Text on card19.48:1AAA
Primary button5.61:1AA
Secondary button6.11:1AA
Muted text7.90:1AAA
Accent6.11:1AA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.007 99.444);
  --muted-foreground: oklch(0.473 0.01 99.639);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.614 0.013 279.026);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.634 0.012 99.62);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.012 99.62);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.36 0.105 42.249);
  --destructive-foreground: oklch(0.853 0.081 47.746);
  --ring: oklch(0.614 0.013 279.026);
  --chart-1: oklch(0.614 0.013 279.026);
  --chart-2: oklch(0.634 0.012 99.62);
  --chart-3: oklch(0.634 0.012 99.62);
  --chart-4: oklch(0.659 0.011 99.591);
  --chart-5: oklch(0.606 0.022 278.767);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.009 275.833);
  --foreground: oklch(0.972 0.006 279.244);
  --muted: oklch(0.179 0.01 100.09);
  --muted-foreground: oklch(0.732 0.009 99.517);
  --popover: oklch(0.106 0.011 275.833);
  --popover-foreground: oklch(0.981 0.004 279.278);
  --card: oklch(0.106 0.011 275.833);
  --card-foreground: oklch(0.981 0.004 279.278);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.614 0.013 279.026);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.634 0.012 99.62);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.012 99.62);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.657 0.204 39.801);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.614 0.013 279.026);
  --chart-1: oklch(0.614 0.013 279.026);
  --chart-2: oklch(0.634 0.012 99.62);
  --chart-3: oklch(0.634 0.012 99.62);
  --chart-4: oklch(0.659 0.011 99.591);
  --chart-5: oklch(0.606 0.022 278.767);
}