Detective is a shadcn/ui theme built around a deep teal primary color (#123023) with deep pink accents (#301220). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep teal primary (#123023) on a teal-tinted background (#050a08).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #050a08black |
| Foreground | #020d08black | #ffffffwhite |
| Card | #f7fdfamintcream | #050a08black |
| Card foreground | #020d08black | #ffffffwhite |
| Popover | #f7fdfamintcream | #050a08black |
| Popover foreground | #020d08black | #ffffffwhite |
| Primary | #123023darkslategray | #123023darkslategray |
| Primary foreground | #51bd8dmediumseagreen | #51bd8dmediumseagreen |
| Secondary | #301220black | #301220black |
| Secondary foreground | #d99bb7plum | #d99bb7plum |
| Muted | #e4e2e3gainsboro | #1d1b1cblack |
| Muted foreground | #433d3fdarkslategray | #c2bcbfsilver |
| Accent | #301220black | #301220black |
| Accent foreground | #d99bb7plum | #d99bb7plum |
| Destructive | #c6430cchocolate | #f1520eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #123023darkslategray | #123023darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 4.99:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Detective in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 167.612);
--foreground: oklch(0.144 0.022 167.379);
--muted: oklch(0.914 0.003 347.916);
--muted-foreground: oklch(0.366 0.01 348.545);
--popover: oklch(0.988 0.007 167.612);
--popover-foreground: oklch(0.144 0.022 167.379);
--card: oklch(0.988 0.007 167.612);
--card-foreground: oklch(0.144 0.022 167.379);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.282 0.044 162.192);
--primary-foreground: oklch(0.722 0.123 161.405);
--secondary: oklch(0.234 0.052 353.602);
--secondary-foreground: oklch(0.758 0.082 350.594);
--accent: oklch(0.234 0.052 353.602);
--accent-foreground: oklch(0.758 0.082 350.594);
--destructive: oklch(0.562 0.176 38.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.044 162.192);
--chart-1: oklch(0.282 0.044 162.192);
--chart-2: oklch(0.234 0.052 353.602);
--chart-3: oklch(0.234 0.052 353.602);
--chart-4: oklch(0.264 0.062 353.963);
--chart-5: oklch(0.285 0.046 161.825);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.011 167.953);
--foreground: oklch(1 0 180);
--muted: oklch(0.224 0.005 348.408);
--muted-foreground: oklch(0.801 0.008 348.09);
--popover: oklch(0.138 0.011 167.953);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.011 167.953);
--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.282 0.044 162.192);
--primary-foreground: oklch(0.722 0.123 161.405);
--secondary: oklch(0.234 0.052 353.602);
--secondary-foreground: oklch(0.758 0.082 350.594);
--accent: oklch(0.234 0.052 353.602);
--accent-foreground: oklch(0.758 0.082 350.594);
--destructive: oklch(0.65 0.206 38.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.044 162.192);
--chart-1: oklch(0.282 0.044 162.192);
--chart-2: oklch(0.234 0.052 353.602);
--chart-3: oklch(0.234 0.052 353.602);
--chart-4: oklch(0.264 0.062 353.963);
--chart-5: oklch(0.285 0.046 161.825);
}