Spectrograph is a shadcn/ui theme built around a green primary color (#c2e892) with green accents (#97e892). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#c2e892) on a green-tinted background (#0b0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0b0e07black |
| Foreground | #0e1703black | #fafbf9snow |
| Card | #fdfefbwhite | #0b0e07black |
| Card foreground | #0e1703black | #fafbf9snow |
| Popover | #fdfefbwhite | #0b0e07black |
| Popover foreground | #0e1703black | #fafbf9snow |
| Primary | #c2e892khaki | #c2e892khaki |
| Primary foreground | #273b0cdarkgreen | #273b0cdarkgreen |
| Secondary | #e8e292khaki | #e8e292khaki |
| Secondary foreground | #3b380cdarkolivegreen | #3b380cdarkolivegreen |
| Muted | #e5e4d7gainsboro | #28271ablack |
| Muted foreground | #4b4a3fdarkslategray | #c0c0b4silver |
| Accent | #97e892lightgreen | #97e892lightgreen |
| Accent foreground | #103b0cdarkgreen | #103b0cdarkgreen |
| Destructive | #912e0dsaddlebrown | #ed5c2cchocolate |
| Destructive foreground | #fbded5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c2e892khaki | #c2e892khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.13:1 | AAA |
| Text on card | 18.13:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 8.94:1 | AAA |
| Muted text | 6.98:1 | AA |
| Accent | 8.62:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 8.94:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 8.62:1 | AAA |
| Destructive | 6.15:1 | AA |
Paste this into your globals.css to use Spectrograph in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 125.792);
--foreground: oklch(0.189 0.042 127.844);
--muted: oklch(0.916 0.018 103.434);
--muted-foreground: oklch(0.407 0.019 103.843);
--popover: oklch(0.995 0.004 125.792);
--popover-foreground: oklch(0.189 0.042 127.844);
--card: oklch(0.995 0.004 125.792);
--card-foreground: oklch(0.189 0.042 127.844);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.119 127.713);
--primary-foreground: oklch(0.324 0.074 129.98);
--secondary: oklch(0.9 0.102 104.738);
--secondary-foreground: oklch(0.333 0.061 105.231);
--accent: oklch(0.858 0.141 142.736);
--accent-foreground: oklch(0.311 0.088 142.172);
--destructive: oklch(0.447 0.14 36.92);
--destructive-foreground: oklch(0.923 0.035 39.321);
--ring: oklch(0.884 0.119 127.713);
--chart-1: oklch(0.884 0.119 127.713);
--chart-2: oklch(0.9 0.102 104.738);
--chart-3: oklch(0.858 0.141 142.736);
--chart-4: oklch(0.911 0.091 104.581);
--chart-5: oklch(0.888 0.123 127.8);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.016 126.296);
--foreground: oklch(0.987 0.003 125.778);
--muted: oklch(0.271 0.024 104.427);
--muted-foreground: oklch(0.804 0.016 103.435);
--popover: oklch(0.156 0.016 126.296);
--popover-foreground: oklch(0.987 0.003 125.778);
--card: oklch(0.156 0.016 126.296);
--card-foreground: oklch(0.987 0.003 125.778);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.119 127.713);
--primary-foreground: oklch(0.324 0.074 129.98);
--secondary: oklch(0.9 0.102 104.738);
--secondary-foreground: oklch(0.333 0.061 105.231);
--accent: oklch(0.858 0.141 142.736);
--accent-foreground: oklch(0.311 0.088 142.172);
--destructive: oklch(0.657 0.189 37.854);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.884 0.119 127.713);
--chart-1: oklch(0.884 0.119 127.713);
--chart-2: oklch(0.9 0.102 104.738);
--chart-3: oklch(0.858 0.141 142.736);
--chart-4: oklch(0.911 0.091 104.581);
--chart-5: oklch(0.888 0.123 127.8);
}