Trail is a shadcn/ui theme built around a purple primary color (#c936ae) with pink accents (#c93664). The light mode uses a neutral background (#fefbfd). Dark mode keeps the purple primary (#c936ae) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #140611black | #fbf9fbsnow |
| Card | #fcf7fcsnow | #030303black |
| Card foreground | #10050eblack | #fdfcfdwhite |
| Popover | #fcf7fcsnow | #030303black |
| Popover foreground | #10050eblack | #fdfcfdwhite |
| Primary | #c936aemediumorchid | #c936aemediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9b36c9darkorchid | #9b36c9darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeeceewhitesmoke | #121113black |
| Muted foreground | #473e4cdarkslategray | #bdb3c1silver |
| Accent | #c93664indianred | #c93664indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d1808maroon | #f3573ftomato |
| Destructive foreground | #fbc4bclightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c936aemediumorchid | #c936aemediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 4.53:1 | AA |
| Secondary button | 5.59:1 | AA |
| Muted text | 8.66:1 | AAA |
| Accent | 4.99:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 4.53:1 | AA |
| Secondary button | 5.59:1 | AA |
| Muted text | 9.31:1 | AAA |
| Accent | 4.99:1 | AA |
| Destructive | 6.24:1 | AA |
Paste this into your globals.css to use Trail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 331.462);
--foreground: oklch(0.151 0.034 333.986);
--muted: oklch(0.945 0.003 315.413);
--muted-foreground: oklch(0.379 0.026 315.137);
--popover: oklch(0.982 0.008 331.518);
--popover-foreground: oklch(0.138 0.03 333.451);
--card: oklch(0.982 0.008 331.518);
--card-foreground: oklch(0.138 0.03 333.451);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.595 0.221 336.536);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.545 0.222 312.541);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.567 0.186 6.59);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.384 0.138 31.604);
--destructive-foreground: oklch(0.867 0.064 28.489);
--ring: oklch(0.595 0.221 336.536);
--chart-1: oklch(0.595 0.221 336.536);
--chart-2: oklch(0.545 0.222 312.541);
--chart-3: oklch(0.567 0.186 6.59);
--chart-4: oklch(0.567 0.212 313.03);
--chart-5: oklch(0.6 0.229 336.75);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.004 331.467);
--muted: oklch(0.179 0.005 315.312);
--muted-foreground: oklch(0.78 0.022 315.309);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.992 0.002 331.437);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.002 331.437);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.595 0.221 336.536);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.545 0.222 312.541);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.567 0.186 6.59);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.662 0.195 31.378);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.595 0.221 336.536);
--chart-1: oklch(0.595 0.221 336.536);
--chart-2: oklch(0.545 0.222 312.541);
--chart-3: oklch(0.567 0.186 6.59);
--chart-4: oklch(0.567 0.212 313.03);
--chart-5: oklch(0.6 0.229 336.75);
}