Detailed is a shadcn/ui theme built around a deep violet primary color (#311146) with deep purple accents (#461141). The light mode uses a neutral background (#faf7fd). Dark mode keeps the deep violet primary (#311146) on a neutral background (#050407).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #050407black |
| Foreground | #08040cblack | #fdfcfdwhite |
| Card | #faf7fdghostwhite | #050407black |
| Card foreground | #08040cblack | #fdfcfdwhite |
| Popover | #faf7fdghostwhite | #050407black |
| Popover foreground | #08040cblack | #fdfcfdwhite |
| Primary | #311146midnightblue | #311146midnightblue |
| Primary foreground | #cca1e8plum | #cca1e8plum |
| Secondary | #161146midnightblue | #161146midnightblue |
| Secondary foreground | #a8a1e8lightsteelblue | #a8a1e8lightsteelblue |
| Muted | #d9d8e9gainsboro | #181627black |
| Muted foreground | #555464dimgray | #9d9babdarkgray |
| Accent | #461141midnightblue | #461141midnightblue |
| Accent foreground | #e8a1e1plum | #e8a1e1plum |
| Destructive | #d42902firebrick | #fd5630tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #311146midnightblue | #311146midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 5.25:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Detailed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 312.298);
--foreground: oklch(0.119 0.025 313.867);
--muted: oklch(0.888 0.024 290.495);
--muted-foreground: oklch(0.452 0.027 289.868);
--popover: oklch(0.981 0.008 312.298);
--popover-foreground: oklch(0.119 0.025 313.867);
--card: oklch(0.981 0.008 312.298);
--card-foreground: oklch(0.119 0.025 313.867);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.257 0.096 308.62);
--primary-foreground: oklch(0.772 0.11 311.286);
--secondary: oklch(0.225 0.095 280.107);
--secondary-foreground: oklch(0.74 0.102 288.208);
--accent: oklch(0.288 0.102 332.168);
--accent-foreground: oklch(0.797 0.118 330.124);
--destructive: oklch(0.562 0.209 32.438);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.257 0.096 308.62);
--chart-1: oklch(0.257 0.096 308.62);
--chart-2: oklch(0.225 0.095 280.107);
--chart-3: oklch(0.288 0.102 332.168);
--chart-4: oklch(0.247 0.108 279.481);
--chart-5: oklch(0.257 0.1 308.347);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 313.311);
--foreground: oklch(0.992 0.001 312.348);
--muted: oklch(0.211 0.035 287.608);
--muted-foreground: oklch(0.696 0.024 290.356);
--popover: oklch(0.109 0.012 313.311);
--popover-foreground: oklch(0.992 0.001 312.348);
--card: oklch(0.109 0.012 313.311);
--card-foreground: oklch(0.992 0.001 312.348);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.257 0.096 308.62);
--primary-foreground: oklch(0.772 0.11 311.286);
--secondary: oklch(0.225 0.095 280.107);
--secondary-foreground: oklch(0.74 0.102 288.208);
--accent: oklch(0.288 0.102 332.168);
--accent-foreground: oklch(0.797 0.118 330.124);
--destructive: oklch(0.675 0.21 34.015);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.257 0.096 308.62);
--chart-1: oklch(0.257 0.096 308.62);
--chart-2: oklch(0.225 0.095 280.107);
--chart-3: oklch(0.288 0.102 332.168);
--chart-4: oklch(0.247 0.108 279.481);
--chart-5: oklch(0.257 0.1 308.347);
}