Trailer is a shadcn/ui theme built around a neutral gray primary color (#929396) with muted light blue accents (#c6c9d7). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the neutral gray primary (#929396) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f8fdghostwhite | #020203black |
| Foreground | #030716black | #f5f6fawhitesmoke |
| Card | #f2f4fdaliceblue | #030407black |
| Card foreground | #030512black | #f8f9fcghostwhite |
| Popover | #f2f4fdaliceblue | #030407black |
| Popover foreground | #030512black | #f8f9fcghostwhite |
| Primary | #929396lightslategray | #929396lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #dbdce1gainsboro | #1f2128black |
| Secondary foreground | #3e404cdarkslategray | #b5b8c5silver |
| Muted | #dcdde0gainsboro | #1f2023black |
| Muted foreground | #505158darkslategray | #a7a8afdarkgray |
| Accent | #c6c9d7lightgrey | #2c3144darkslategray |
| Accent foreground | #2c2f3fdarkslategray | #c7cbdblightgrey |
| Destructive | #7a1b00maroon | #ff5729tomato |
| Destructive foreground | #ffbfadlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #929396lightslategray | #929396lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Trailer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 276.063);
--foreground: oklch(0.133 0.035 267.714);
--muted: oklch(0.897 0.004 276.1);
--muted-foreground: oklch(0.438 0.011 275.813);
--popover: oklch(0.968 0.012 276.009);
--popover-foreground: oklch(0.123 0.03 266.995);
--card: oklch(0.968 0.012 276.009);
--card-foreground: oklch(0.123 0.03 266.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.662 0.005 276.063);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.894 0.007 276.056);
--secondary-foreground: oklch(0.375 0.019 275.428);
--accent: oklch(0.838 0.02 275.842);
--accent-foreground: oklch(0.31 0.029 274.764);
--destructive: oklch(0.382 0.134 34.853);
--destructive-foreground: oklch(0.859 0.078 36.026);
--ring: oklch(0.662 0.005 276.063);
--chart-1: oklch(0.662 0.005 276.063);
--chart-2: oklch(0.894 0.007 276.056);
--chart-3: oklch(0.838 0.02 275.842);
--chart-4: oklch(0.919 0.006 276.084);
--chart-5: oklch(0.656 0.013 275.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 272.162);
--foreground: oklch(0.972 0.006 276.082);
--muted: oklch(0.244 0.006 275.819);
--muted-foreground: oklch(0.733 0.01 275.985);
--popover: oklch(0.107 0.011 272.162);
--popover-foreground: oklch(0.982 0.004 276.11);
--card: oklch(0.107 0.011 272.162);
--card-foreground: oklch(0.982 0.004 276.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.662 0.005 276.063);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.249 0.013 275.396);
--secondary-foreground: oklch(0.783 0.019 275.845);
--accent: oklch(0.316 0.035 274.448);
--accent-foreground: oklch(0.844 0.022 275.81);
--destructive: oklch(0.68 0.212 35.579);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.662 0.005 276.063);
--chart-1: oklch(0.662 0.005 276.063);
--chart-2: oklch(0.249 0.013 275.396);
--chart-3: oklch(0.316 0.035 274.448);
--chart-4: oklch(0.279 0.016 275.35);
--chart-5: oklch(0.656 0.013 275.898);
}