TravelEngine is a shadcn/ui theme built around a vivid green primary color (#16a34a) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a green primary (#22c55e) on an orange-tinted background (#0c0a09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0a09black |
| Foreground | #09090bblack | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #1c1917black |
| Card foreground | #09090bblack | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #171717black |
| Popover foreground | #09090bblack | #f2f2f2whitesmoke |
| Primary | #16a34aseagreen | #22c55emediumseagreen |
| Primary foreground | #fff1f2lavenderblush | #052e16black |
| Secondary | #f4f4f5whitesmoke | #27272adarkslategray |
| Secondary foreground | #18181bblack | #fafafasnow |
| Muted | #f4f4f5whitesmoke | #262626darkslategray |
| Muted foreground | #71717adimgray | #a1a1aadarkgray |
| Accent | #f4f4f5whitesmoke | #292524darkslategray |
| Accent foreground | #18181bblack | #fafafasnow |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #fafafasnow | #fef2f2lavenderblush |
| Border | #e4e4e7gainsboro | #27272adarkslategray |
| Input | #e4e4e7gainsboro | #27272adarkslategray |
| Ring | #16a34aseagreen | #15803dforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 2.99:1 | Fail |
| Secondary button | 16.12:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 17.65:1 | AAA |
| Text on card | 15.62:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 14.26:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 14.53:1 | AAA |
| Destructive | 9.15:1 | AAA |
Paste this into your globals.css to use TravelEngine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.004 285.824);
--muted: oklch(0.968 0.001 286.375);
--muted-foreground: oklch(0.552 0.014 285.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.004 285.824);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.004 285.824);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--primary: oklch(0.627 0.17 149.2);
--primary-foreground: oklch(0.97 0.015 12.399);
--secondary: oklch(0.968 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.883);
--accent: oklch(0.968 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.883);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0 180);
--ring: oklch(0.627 0.17 149.2);
--chart-1: oklch(0.627 0.17 149.2);
--chart-2: oklch(0.968 0.001 286.375);
--chart-3: oklch(0.968 0.001 286.375);
--chart-4: oklch(0.991 0 286.393);
--chart-5: oklch(0.635 0.175 148.9);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.004 49.314);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.27 0 180);
--muted-foreground: oklch(0.712 0.013 286.068);
--popover: oklch(0.204 0 180);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.216 0.006 56.043);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.274 0.005 286.033);
--input: oklch(0.274 0.005 286.033);
--primary: oklch(0.723 0.192 149.583);
--primary-foreground: oklch(0.266 0.063 152.948);
--secondary: oklch(0.274 0.005 286.033);
--secondary-foreground: oklch(0.985 0 180);
--accent: oklch(0.269 0.006 34.297);
--accent-foreground: oklch(0.985 0 180);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.971 0.013 17.376);
--ring: oklch(0.527 0.137 150.055);
--chart-1: oklch(0.723 0.192 149.583);
--chart-2: oklch(0.274 0.005 286.033);
--chart-3: oklch(0.269 0.006 34.297);
--chart-4: oklch(0.304 0.006 286.017);
--chart-5: oklch(0.731 0.198 149.264);
}