Trailer is a shadcn/ui theme built around a purple primary color (#a94bc3) with green accents (#65c34b). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#a94bc3) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #120317black | #fdfcfdwhite |
| Card | #ffffffwhite | #060307black |
| Card foreground | #120317black | #fdfcfdwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #120317black | #fdfcfdwhite |
| Primary | #a94bc3mediumorchid | #a94bc3mediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #65c34blimegreen | #65c34blimegreen |
| Secondary foreground | #183211black | #183211black |
| Muted | #d9e0d7gainsboro | #21281fblack |
| Muted foreground | #545c51dimgray | #a5aea3darkgray |
| Accent | #65c34blimegreen | #65c34blimegreen |
| Accent foreground | #183211black | #183211black |
| Destructive | #c21b0ffirebrick | #f04438tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a94bc3mediumorchid | #a94bc3mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 5.13:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 6.30:1 | AA |
| Muted text | 6.61:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Trailer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.052 319.433);
--muted: oklch(0.898 0.014 138.896);
--muted-foreground: oklch(0.464 0.019 138.908);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.052 319.433);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.052 319.433);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.583 0.194 318.345);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.734 0.181 139.436);
--secondary-foreground: oklch(0.286 0.065 139.301);
--accent: oklch(0.734 0.181 139.436);
--accent-foreground: oklch(0.286 0.065 139.301);
--destructive: oklch(0.522 0.201 29.711);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.583 0.194 318.345);
--chart-1: oklch(0.583 0.194 318.345);
--chart-2: oklch(0.734 0.181 139.436);
--chart-3: oklch(0.734 0.181 139.436);
--chart-4: oklch(0.749 0.172 139.317);
--chart-5: oklch(0.583 0.203 318.258);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.02 320.465);
--foreground: oklch(0.992 0.001 318.89);
--muted: oklch(0.267 0.018 138.925);
--muted-foreground: oklch(0.74 0.017 138.9);
--popover: oklch(0.108 0.02 320.465);
--popover-foreground: oklch(0.992 0.001 318.89);
--card: oklch(0.108 0.02 320.465);
--card-foreground: oklch(0.992 0.001 318.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.583 0.194 318.345);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.734 0.181 139.436);
--secondary-foreground: oklch(0.286 0.065 139.301);
--accent: oklch(0.734 0.181 139.436);
--accent-foreground: oklch(0.286 0.065 139.301);
--destructive: oklch(0.637 0.21 28.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.583 0.194 318.345);
--chart-1: oklch(0.583 0.194 318.345);
--chart-2: oklch(0.734 0.181 139.436);
--chart-3: oklch(0.734 0.181 139.436);
--chart-4: oklch(0.749 0.172 139.317);
--chart-5: oklch(0.583 0.203 318.258);
}