Detailed is a shadcn/ui theme built around a vivid pink primary color (#d30d4f) with vivid blue accents (#0d4fd3). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the vivid pink primary (#d30d4f) on a pink-tinted background (#0b0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #0b0507black |
| Foreground | #090104black | #f8f6f7whitesmoke |
| Card | #fdf7f9snow | #0b0507black |
| Card foreground | #090104black | #f8f6f7whitesmoke |
| Popover | #fdf7f9snow | #0b0507black |
| Popover foreground | #090104black | #f8f6f7whitesmoke |
| Primary | #d30d4fcrimson | #d30d4fcrimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4fd30dlimegreen | #4fd30dlimegreen |
| Secondary foreground | #071301black | #071301black |
| Muted | #dae0d7gainsboro | #22281fblack |
| Muted foreground | #565954dimgray | #a7aba6darkgray |
| Accent | #0d4fd3royalblue | #0d4fd3royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #712809saddlebrown | #f07642coral |
| Destructive foreground | #f9c8b4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d30d4fcrimson | #d30d4fcrimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 9.66:1 | AAA |
| Muted text | 5.27:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 9.66:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 7.38:1 | AAA |
Paste this into your globals.css to use Detailed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 354.774);
--foreground: oklch(0.101 0.027 354.056);
--muted: oklch(0.899 0.013 134.899);
--muted-foreground: oklch(0.46 0.009 134.928);
--popover: oklch(0.981 0.006 354.774);
--popover-foreground: oklch(0.101 0.027 354.056);
--card: oklch(0.981 0.006 354.774);
--card-foreground: oklch(0.101 0.027 354.056);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.556 0.217 12.385);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.763 0.238 139.07);
--secondary-foreground: oklch(0.17 0.044 133.751);
--accent: oklch(0.483 0.212 262.286);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.382 0.111 40.35);
--destructive-foreground: oklch(0.871 0.062 44.397);
--ring: oklch(0.556 0.217 12.385);
--chart-1: oklch(0.556 0.217 12.385);
--chart-2: oklch(0.763 0.238 139.07);
--chart-3: oklch(0.483 0.212 262.286);
--chart-4: oklch(0.802 0.25 139.105);
--chart-5: oklch(0.561 0.221 13.105);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 354.393);
--foreground: oklch(0.976 0.002 354.661);
--muted: oklch(0.268 0.018 135.167);
--muted-foreground: oklch(0.737 0.008 134.883);
--popover: oklch(0.124 0.015 354.393);
--popover-foreground: oklch(0.976 0.002 354.661);
--card: oklch(0.124 0.015 354.393);
--card-foreground: oklch(0.976 0.002 354.661);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.556 0.217 12.385);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.763 0.238 139.07);
--secondary-foreground: oklch(0.17 0.044 133.751);
--accent: oklch(0.483 0.212 262.286);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.7 0.164 42.499);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.556 0.217 12.385);
--chart-1: oklch(0.556 0.217 12.385);
--chart-2: oklch(0.763 0.238 139.07);
--chart-3: oklch(0.483 0.212 262.286);
--chart-4: oklch(0.802 0.25 139.105);
--chart-5: oklch(0.561 0.221 13.105);
}