Cable for shadcn/ui

Cable is a shadcn/ui theme built around a muted orange primary color (#bbb4af) with muted violet accents (#b4afbb). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#bbb4af) on an orange-tinted background (#0e0906).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0e0906black
Foreground
#140b06black
#fdfcfcsnow
Card
#fefcfbsnow
#0e0906black
Card foreground
#140b06black
#fdfcfcsnow
Popover
#fefcfbsnow
#0e0906black
Popover foreground
#140b06black
#fdfcfcsnow
Primary
#bbb4afsilver
#bbb4afsilver
Primary foreground
#1e1c1ablack
#1e1c1ablack
Secondary
#afbbb4silver
#afbbb4silver
Secondary foreground
#1a1e1cblack
#1a1e1cblack
Muted
#dae2ddgainsboro
#1d2520black
Muted foreground
#454a47darkslategray
#b5bab7silver
Accent
#b4afbbsilver
#b4afbbsilver
Accent foreground
#1c1a1eblack
#1c1a1eblack
Destructive
#b41313firebrick
#d01616firebrick
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bbb4afsilver
#bbb4afsilver

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 button8.29:1AAA
Secondary button8.49:1AAA
Muted text6.84:1AA
Accent8.05:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button8.29:1AAA
Secondary button8.49:1AAA
Muted text7.94:1AAA
Accent8.05:1AAA
Destructive5.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 56.406);
  --foreground: oklch(0.161 0.019 57.621);
  --muted: oklch(0.905 0.012 159.938);
  --muted-foreground: oklch(0.403 0.007 159.828);
  --popover: oklch(0.993 0.002 56.406);
  --popover-foreground: oklch(0.161 0.019 57.621);
  --card: oklch(0.993 0.002 56.406);
  --card-foreground: oklch(0.161 0.019 57.621);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.774 0.011 56.246);
  --primary-foreground: oklch(0.227 0.005 56.104);
  --secondary: oklch(0.781 0.016 159.743);
  --secondary-foreground: oklch(0.231 0.008 159.371);
  --accent: oklch(0.762 0.017 304.017);
  --accent-foreground: oklch(0.221 0.009 303.76);
  --destructive: oklch(0.491 0.191 28.162);
  --destructive-foreground: oklch(0.989 0.004 17.232);
  --ring: oklch(0.774 0.011 56.246);
  --chart-1: oklch(0.774 0.011 56.246);
  --chart-2: oklch(0.781 0.016 159.743);
  --chart-3: oklch(0.762 0.017 304.017);
  --chart-4: oklch(0.804 0.015 159.811);
  --chart-5: oklch(0.774 0.014 56.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.011 59.477);
  --foreground: oklch(0.992 0.001 56.427);
  --muted: oklch(0.256 0.016 158.753);
  --muted-foreground: oklch(0.784 0.006 160.058);
  --popover: oklch(0.147 0.011 59.477);
  --popover-foreground: oklch(0.992 0.001 56.427);
  --card: oklch(0.147 0.011 59.477);
  --card-foreground: oklch(0.992 0.001 56.427);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.774 0.011 56.246);
  --primary-foreground: oklch(0.227 0.005 56.104);
  --secondary: oklch(0.781 0.016 159.743);
  --secondary-foreground: oklch(0.231 0.008 159.371);
  --accent: oklch(0.762 0.017 304.017);
  --accent-foreground: oklch(0.221 0.009 303.76);
  --destructive: oklch(0.545 0.214 28.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.774 0.011 56.246);
  --chart-1: oklch(0.774 0.011 56.246);
  --chart-2: oklch(0.781 0.016 159.743);
  --chart-3: oklch(0.762 0.017 304.017);
  --chart-4: oklch(0.804 0.015 159.811);
  --chart-5: oklch(0.774 0.014 56.176);
}