Trailer is a shadcn/ui theme built around a vivid orange primary color (#c7701a) with vivid violet accents (#701ac7). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid orange primary (#c7701a) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #070503black |
| Foreground | #000000black | #fbfaf8snow |
| Card | #faf7f5whitesmoke | #0b0805black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfaf8snow | #070503black |
| Popover foreground | #000000black | #fbfaf8snow |
| Primary | #c7701achocolate | #c7701achocolate |
| Primary foreground | #000000black | #000000black |
| Secondary | #1ac770mediumseagreen | #1ac770mediumseagreen |
| Secondary foreground | #02120ablack | #02120ablack |
| Muted | #d3ded9gainsboro | #212c26darkslategray |
| Muted foreground | #5f6d66dimgray | #92a099darkgray |
| Accent | #701ac7blueviolet | #701ac7blueviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #751600maroon | #ff4c24orangered |
| Destructive foreground | #ffb8a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7701achocolate | #c7701achocolate |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 3.94:1 | AA Large |
| Accent | 7.89:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Trailer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 67.788);
--foreground: oklch(0 0 0);
--muted: oklch(0.892 0.015 164.709);
--muted-foreground: oklch(0.521 0.021 164.067);
--popover: oklch(0.986 0.003 67.788);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.005 67.77);
--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.63 0.141 58.5);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.729 0.179 153.82);
--secondary-foreground: oklch(0.164 0.03 162.373);
--accent: oklch(0.467 0.234 298.669);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.367 0.133 33.692);
--destructive-foreground: oklch(0.845 0.086 33.042);
--ring: oklch(0.63 0.141 58.5);
--chart-1: oklch(0.63 0.141 58.5);
--chart-2: oklch(0.729 0.179 153.82);
--chart-3: oklch(0.467 0.234 298.669);
--chart-4: oklch(0.766 0.189 153.752);
--chart-5: oklch(0.635 0.145 57.82);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.009 73.618);
--foreground: oklch(0.985 0.002 67.794);
--muted: oklch(0.28 0.019 163.221);
--muted-foreground: oklch(0.693 0.019 164.396);
--popover: oklch(0.118 0.009 73.618);
--popover-foreground: oklch(0.985 0.002 67.794);
--card: oklch(0.135 0.011 73.503);
--card-foreground: oklch(0.993 0.001 67.808);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.63 0.141 58.5);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.729 0.179 153.82);
--secondary-foreground: oklch(0.164 0.03 162.373);
--accent: oklch(0.467 0.234 298.669);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.221 33.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.63 0.141 58.5);
--chart-1: oklch(0.63 0.141 58.5);
--chart-2: oklch(0.729 0.179 153.82);
--chart-3: oklch(0.467 0.234 298.669);
--chart-4: oklch(0.766 0.189 153.752);
--chart-5: oklch(0.635 0.145 57.82);
}