Instrument is a shadcn/ui theme built around a vivid deep green primary color (#043a0d) with vivid deep teal accents (#043a28). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#043a0d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020d04black | #f5f9f6whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020d04black | #f5f9f6whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020d04black | #f5f9f6whitesmoke |
| Primary | #043a0ddarkgreen | #043a0ddarkgreen |
| Primary foreground | #19f03dlimegreen | #19f03dlimegreen |
| Secondary | #163a04darkgreen | #163a04darkgreen |
| Secondary foreground | #61f019lawngreen | #61f019lawngreen |
| Muted | #e5e8e3gainsboro | #191c17black |
| Muted foreground | #535851dimgray | #aaaea7darkgray |
| Accent | #043a28darkgreen | #043a28darkgreen |
| Accent foreground | #19f0a9mediumspringgreen | #19f0a9mediumspringgreen |
| Destructive | #952c09saddlebrown | #de410dorangered |
| Destructive foreground | #fcded4antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #043a0ddarkgreen | #043a0ddarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 8.63:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 8.63:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Instrument in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.03 149.388);
--muted: oklch(0.927 0.008 134.868);
--muted-foreground: oklch(0.452 0.012 134.962);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.03 149.388);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.03 149.388);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.303 0.091 145.217);
--primary-foreground: oklch(0.832 0.264 144.136);
--secondary: oklch(0.308 0.09 137.638);
--secondary-foreground: oklch(0.844 0.259 138.763);
--accent: oklch(0.308 0.063 164.613);
--accent-foreground: oklch(0.847 0.182 162.39);
--destructive: oklch(0.451 0.147 36.399);
--destructive-foreground: oklch(0.923 0.037 39.314);
--ring: oklch(0.303 0.091 145.217);
--chart-1: oklch(0.303 0.091 145.217);
--chart-2: oklch(0.308 0.09 137.638);
--chart-3: oklch(0.308 0.063 164.613);
--chart-4: oklch(0.356 0.105 138.043);
--chart-5: oklch(0.305 0.093 145.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.006 150.74);
--muted: oklch(0.221 0.011 135.081);
--muted-foreground: oklch(0.746 0.011 134.899);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.006 150.74);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.006 150.74);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.303 0.091 145.217);
--primary-foreground: oklch(0.832 0.264 144.136);
--secondary: oklch(0.308 0.09 137.638);
--secondary-foreground: oklch(0.844 0.259 138.763);
--accent: oklch(0.308 0.063 164.613);
--accent-foreground: oklch(0.847 0.182 162.39);
--destructive: oklch(0.6 0.201 35.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.303 0.091 145.217);
--chart-1: oklch(0.303 0.091 145.217);
--chart-2: oklch(0.308 0.09 137.638);
--chart-3: oklch(0.308 0.063 164.613);
--chart-4: oklch(0.356 0.105 138.043);
--chart-5: oklch(0.305 0.093 145.142);
}