Detour is a shadcn/ui theme built around a muted red primary color (#b09d9b) with muted indigo accents (#9d9bb0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#b09d9b) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070403black |
| Foreground | #000000black | #fbf9f9snow |
| Card | #ffffffwhite | #070403black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #ffffffwhite | #070403black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #b09d9bdarkgray | #b09d9bdarkgray |
| Primary foreground | #0e0c0bblack | #0e0c0bblack |
| Secondary | #9bb09ddarkgray | #9bb09ddarkgray |
| Secondary foreground | #0b0e0cblack | #0b0e0cblack |
| Muted | #eceeecwhitesmoke | #111311black |
| Muted foreground | #5b6b5ddimgray | #94a495darkseagreen |
| Accent | #9d9bb0darkgray | #9d9bb0darkgray |
| Accent foreground | #0c0b0eblack | #0c0b0eblack |
| Destructive | #7f1a01maroon | #fe4c20orangered |
| Destructive foreground | #ffc2b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b09d9bdarkgray | #b09d9bdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Detour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.004 148.546);
--muted-foreground: oklch(0.511 0.029 147.93);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.713 0.023 25.284);
--primary-foreground: oklch(0.155 0.005 25.27);
--secondary: oklch(0.737 0.036 148.03);
--secondary-foreground: oklch(0.16 0.008 148.053);
--accent: oklch(0.698 0.031 290.16);
--accent-foreground: oklch(0.152 0.006 290.197);
--destructive: oklch(0.39 0.139 34.061);
--destructive-foreground: oklch(0.865 0.073 34.453);
--ring: oklch(0.713 0.023 25.284);
--chart-1: oklch(0.713 0.023 25.284);
--chart-2: oklch(0.737 0.036 148.03);
--chart-3: oklch(0.698 0.031 290.16);
--chart-4: oklch(0.76 0.033 148.099);
--chart-5: oklch(0.71 0.029 25.373);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.01 27.784);
--foreground: oklch(0.984 0.001 25.002);
--muted: oklch(0.183 0.006 148.223);
--muted-foreground: oklch(0.7 0.027 148.15);
--popover: oklch(0.11 0.01 27.784);
--popover-foreground: oklch(0.984 0.001 25.002);
--card: oklch(0.11 0.01 27.784);
--card-foreground: oklch(0.984 0.001 25.002);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.713 0.023 25.284);
--primary-foreground: oklch(0.155 0.005 25.27);
--secondary: oklch(0.737 0.036 148.03);
--secondary-foreground: oklch(0.16 0.008 148.053);
--accent: oklch(0.698 0.031 290.16);
--accent-foreground: oklch(0.152 0.006 290.197);
--destructive: oklch(0.666 0.221 34.377);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.713 0.023 25.284);
--chart-1: oklch(0.713 0.023 25.284);
--chart-2: oklch(0.737 0.036 148.03);
--chart-3: oklch(0.698 0.031 290.16);
--chart-4: oklch(0.76 0.033 148.099);
--chart-5: oklch(0.71 0.029 25.373);
}