Vehicle is a shadcn/ui theme built around a blue primary color (#2180d4) with indigo accents (#2127d4). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#2180d4) on a blue-tinted background (#040b10).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #040b10black |
| Foreground | #040b10black | #ffffffwhite |
| Card | #f7fafdghostwhite | #050d14black |
| Card foreground | #03080cblack | #ffffffwhite |
| Popover | #fbfdfewhite | #040b10black |
| Popover foreground | #040b10black | #ffffffwhite |
| Primary | #2180d4royalblue | #2180d4royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #21d4ceturquoise | #21d4ceturquoise |
| Secondary foreground | #062322black | #062322black |
| Muted | #d6dcdcgainsboro | #232929darkslategray |
| Muted foreground | #4f5f5edimgray | #a0b0b0darkgray |
| Accent | #2127d4mediumblue | #2127d4mediumblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6e0902maroon | #e11305red |
| Destructive foreground | #fdaba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2180d4royalblue | #2180d4royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 8.92:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 9.11:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 8.92:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 9.11:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Vehicle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 244.121);
--foreground: oklch(0.143 0.017 240.46);
--muted: oklch(0.889 0.007 194.651);
--muted-foreground: oklch(0.47 0.019 194.038);
--popover: oklch(0.992 0.003 244.121);
--popover-foreground: oklch(0.143 0.017 240.46);
--card: oklch(0.984 0.005 244.154);
--card-foreground: oklch(0.129 0.015 236.753);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.59 0.153 250.235);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.787 0.131 191.126);
--secondary-foreground: oklch(0.235 0.035 191.919);
--accent: oklch(0.427 0.249 268.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.344 0.133 30.305);
--destructive-foreground: oklch(0.819 0.098 23.93);
--ring: oklch(0.59 0.153 250.235);
--chart-1: oklch(0.59 0.153 250.235);
--chart-2: oklch(0.787 0.131 191.126);
--chart-3: oklch(0.427 0.249 268.269);
--chart-4: oklch(0.814 0.134 191.193);
--chart-5: oklch(0.593 0.158 250.644);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.017 240.615);
--foreground: oklch(1 0 180);
--muted: oklch(0.276 0.009 194.208);
--muted-foreground: oklch(0.745 0.017 194.357);
--popover: oklch(0.143 0.017 240.615);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.02 243.414);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.59 0.153 250.235);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.787 0.131 191.126);
--secondary-foreground: oklch(0.235 0.035 191.919);
--accent: oklch(0.427 0.249 268.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.576 0.23 29.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.59 0.153 250.235);
--chart-1: oklch(0.59 0.153 250.235);
--chart-2: oklch(0.787 0.131 191.126);
--chart-3: oklch(0.427 0.249 268.269);
--chart-4: oklch(0.814 0.134 191.193);
--chart-5: oklch(0.593 0.158 250.644);
}