Cable for shadcn/ui

Cable is a shadcn/ui theme built around a deep orange primary color (#361f08) with deep yellow accents (#363608). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the deep orange primary (#361f08) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfaf7snow
#000000black
Foreground
#0d0802black
#ffffffwhite
Card
#fcf7f2floralwhite
#030303black
Card foreground
#090502black
#ffffffwhite
Popover
#fcf7f2floralwhite
#030303black
Popover foreground
#090502black
#ffffffwhite
Primary
#361f08black
#361f08black
Primary foreground
#edb882burlywood
#edb882burlywood
Secondary
#360808black
#360808black
Secondary foreground
#ed8282lightcoral
#ed8282lightcoral
Muted
#efe1e1mistyrose
#1e1010black
Muted foreground
#5d4b4bdarkolivegreen
#b4a2a2darkgray
Accent
#363608darkgreen
#363608darkgreen
Accent foreground
#e0e029gold
#e0e029gold
Destructive
#6c1d09maroon
#d83a13orangered
Destructive foreground
#f8beaflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#361f08black
#361f08black

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.12:1AAA
Primary button8.72:1AAA
Secondary button6.81:1AA
Muted text6.42:1AA
Accent8.86:1AAA
Destructive7.14:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.72:1AAA
Secondary button6.81:1AA
Muted text7.59:1AAA
Accent8.86:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 67.76);
  --foreground: oklch(0.137 0.018 76.488);
  --muted: oklch(0.921 0.015 17.431);
  --muted-foreground: oklch(0.432 0.025 18.171);
  --popover: oklch(0.98 0.008 67.728);
  --popover-foreground: oklch(0.12 0.016 77.51);
  --card: oklch(0.98 0.008 67.728);
  --card-foreground: oklch(0.12 0.016 77.51);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.263 0.05 62.484);
  --primary-foreground: oklch(0.818 0.093 65.908);
  --secondary: oklch(0.221 0.073 25.458);
  --secondary-foreground: oklch(0.725 0.132 20.819);
  --accent: oklch(0.321 0.063 109.49);
  --accent-foreground: oklch(0.88 0.183 109.639);
  --destructive: oklch(0.357 0.115 34.596);
  --destructive-foreground: oklch(0.85 0.071 34.446);
  --ring: oklch(0.263 0.05 62.484);
  --chart-1: oklch(0.263 0.05 62.484);
  --chart-2: oklch(0.221 0.073 25.458);
  --chart-3: oklch(0.321 0.063 109.49);
  --chart-4: oklch(0.253 0.087 26.004);
  --chart-5: oklch(0.264 0.051 62.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.193 0.023 19.429);
  --muted-foreground: oklch(0.727 0.022 17.662);
  --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.263 0.05 62.484);
  --primary-foreground: oklch(0.818 0.093 65.908);
  --secondary: oklch(0.221 0.073 25.458);
  --secondary-foreground: oklch(0.725 0.132 20.819);
  --accent: oklch(0.321 0.063 109.49);
  --accent-foreground: oklch(0.88 0.183 109.639);
  --destructive: oklch(0.584 0.2 34.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.263 0.05 62.484);
  --chart-1: oklch(0.263 0.05 62.484);
  --chart-2: oklch(0.221 0.073 25.458);
  --chart-3: oklch(0.321 0.063 109.49);
  --chart-4: oklch(0.253 0.087 26.004);
  --chart-5: oklch(0.264 0.051 62.222);
}