Telephone is a shadcn/ui theme built around a neutral gray primary color (#c0c8c1) with muted green accents (#b5c4b7). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c0c8c1) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010401black |
| Foreground | #041605black | #f5faf5whitesmoke |
| Card | #fcfcfcsnow | #030803black |
| Card foreground | #031104black | #f8fcf8mintcream |
| Popover | #fcfcfcsnow | #030803black |
| Popover foreground | #031104black | #f8fcf8mintcream |
| Primary | #c0c8c1silver | #c0c8c1silver |
| Primary foreground | #282e29darkslategray | #282e29darkslategray |
| Secondary | #cdd0cdlightgrey | #222a23darkslategray |
| Secondary foreground | #333834darkslategray | #b8c6b9silver |
| Muted | #dae7dbgainsboro | #18251ablack |
| Muted foreground | #405442darkslategray | #abbfaddarkgray |
| Accent | #b5c4b7silver | #293d2bdarkslategray |
| Accent foreground | #202820black | #c2d6c3silver |
| Destructive | #b63211firebrick | #ea481forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0c8c1silver | #c0c8c1silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 8.33:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Telephone in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.043 145.686);
--muted: oklch(0.914 0.02 147.833);
--muted-foreground: oklch(0.423 0.037 147.08);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.16 0.038 146.004);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.16 0.038 146.004);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.826 0.014 147.888);
--primary-foreground: oklch(0.295 0.013 147.587);
--secondary: oklch(0.855 0.006 147.985);
--secondary-foreground: oklch(0.334 0.009 147.779);
--accent: oklch(0.805 0.024 147.74);
--accent-foreground: oklch(0.265 0.017 147.352);
--destructive: oklch(0.517 0.174 34.226);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.014 147.888);
--chart-1: oklch(0.826 0.014 147.888);
--chart-2: oklch(0.855 0.006 147.985);
--chart-3: oklch(0.805 0.024 147.74);
--chart-4: oklch(0.878 0.005 148);
--chart-5: oklch(0.828 0.02 147.813);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.016 146.882);
--foreground: oklch(0.98 0.009 147.972);
--muted: oklch(0.248 0.027 146.833);
--muted-foreground: oklch(0.784 0.032 147.62);
--popover: oklch(0.122 0.02 146.882);
--popover-foreground: oklch(0.987 0.006 148.003);
--card: oklch(0.122 0.02 146.882);
--card-foreground: oklch(0.987 0.006 148.003);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.826 0.014 147.888);
--primary-foreground: oklch(0.295 0.013 147.587);
--secondary: oklch(0.276 0.018 147.338);
--secondary-foreground: oklch(0.813 0.023 147.756);
--accent: oklch(0.337 0.042 146.66);
--accent-foreground: oklch(0.856 0.034 147.642);
--destructive: oklch(0.629 0.205 34.491);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.014 147.888);
--chart-1: oklch(0.826 0.014 147.888);
--chart-2: oklch(0.276 0.018 147.338);
--chart-3: oklch(0.337 0.042 146.66);
--chart-4: oklch(0.308 0.021 147.305);
--chart-5: oklch(0.828 0.02 147.813);
}