Spectrograph is a shadcn/ui theme built around a cyan primary color (#2c9bba) with muted light cyan accents (#c5d4d8). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the cyan primary (#2c9bba) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfdghostwhite | #010304black |
| Foreground | #051115black | #f5f9faghostwhite |
| Card | #f7fcfdghostwhite | #010304black |
| Card foreground | #051115black | #f5f9faghostwhite |
| Popover | #f7fcfdghostwhite | #010304black |
| Popover foreground | #051115black | #f5f9faghostwhite |
| Primary | #2c9bbalightseagreen | #2c9bbalightseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6dee0gainsboro | #181e20black |
| Secondary foreground | #39484cdarkslategray | #aabbc0silver |
| Muted | #dfe1e2gainsboro | #1d2020black |
| Muted foreground | #45595edarkslategray | #a1b4badarkgray |
| Accent | #c5d4d8lightgrey | #233438darkslategray |
| Accent foreground | #2b3c40darkslategray | #baced4lightsteelblue |
| Destructive | #9d2706firebrick | #f63c09orangered |
| Destructive foreground | #fee0d8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c9bbalightseagreen | #2c9bbalightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 3.22:1 | AA Large |
| Secondary button | 6.98:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 3.22:1 | AA Large |
| Secondary button | 8.46:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Spectrograph in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 216.035);
--foreground: oklch(0.168 0.02 216.339);
--muted: oklch(0.909 0.003 216.027);
--muted-foreground: oklch(0.448 0.025 216.453);
--popover: oklch(0.987 0.006 216.035);
--popover-foreground: oklch(0.168 0.02 216.339);
--card: oklch(0.987 0.006 216.035);
--card-foreground: oklch(0.168 0.02 216.339);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.106 220.954);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.896 0.009 216.056);
--secondary-foreground: oklch(0.389 0.02 216.391);
--accent: oklch(0.86 0.017 216.115);
--accent-foreground: oklch(0.342 0.023 216.624);
--destructive: oklch(0.461 0.16 34.405);
--destructive-foreground: oklch(0.928 0.035 35.944);
--ring: oklch(0.642 0.106 220.954);
--chart-1: oklch(0.642 0.106 220.954);
--chart-2: oklch(0.896 0.009 216.056);
--chart-3: oklch(0.86 0.017 216.115);
--chart-4: oklch(0.918 0.007 216.044);
--chart-5: oklch(0.648 0.109 221.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.008 212.432);
--foreground: oklch(0.979 0.004 216.03);
--muted: oklch(0.239 0.005 216.107);
--muted-foreground: oklch(0.758 0.023 216.183);
--popover: oklch(0.095 0.008 212.432);
--popover-foreground: oklch(0.979 0.004 216.03);
--card: oklch(0.095 0.008 212.432);
--card-foreground: oklch(0.979 0.004 216.03);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.642 0.106 220.954);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.231 0.01 216.319);
--secondary-foreground: oklch(0.781 0.02 216.154);
--accent: oklch(0.312 0.023 216.735);
--accent-foreground: oklch(0.839 0.023 216.167);
--destructive: oklch(0.638 0.227 33.809);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.106 220.954);
--chart-1: oklch(0.642 0.106 220.954);
--chart-2: oklch(0.231 0.01 216.319);
--chart-3: oklch(0.312 0.023 216.735);
--chart-4: oklch(0.265 0.013 216.354);
--chart-5: oklch(0.648 0.109 221.363);
}