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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 6.81:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 8.86:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.72:1 | AAA |
| Secondary button | 6.81:1 | AA |
| Muted text | 7.59:1 | AAA |
| Accent | 8.86:1 | AAA |
| Destructive | 4.63:1 | AA |
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);
}