Route is a shadcn/ui theme built around a deep green primary color (#344b1b) with deep green accents (#1c4b1b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#344b1b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0d1604black | #fafbf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0d1604black | #fafbf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0d1604black | #fafbf9snow |
| Primary | #344b1bdarkolivegreen | #344b1bdarkolivegreen |
| Primary foreground | #cde4b4palegoldenrod | #cde4b4palegoldenrod |
| Secondary | #4b4a1bdarkolivegreen | #4b4a1bdarkolivegreen |
| Secondary foreground | #e4e3b4palegoldenrod | #e4e3b4palegoldenrod |
| Muted | #f5f4f0whitesmoke | #0f0f0ablack |
| Muted foreground | #676651dimgray | #aeae98darkgray |
| Accent | #1c4b1bdarkgreen | #1c4b1bdarkgreen |
| Accent foreground | #b5e4b4silver | #b5e4b4silver |
| Destructive | #b0400cfirebrick | #f06424chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #344b1bdarkolivegreen | #344b1bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.52:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.31:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 5.83:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Route in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.184 0.037 129.428);
--muted: oklch(0.967 0.006 105.727);
--muted-foreground: oklch(0.506 0.033 106.714);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.184 0.037 129.428);
--card: oklch(1 0 180);
--card-foreground: oklch(0.184 0.037 129.428);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.382 0.078 130.882);
--primary-foreground: oklch(0.889 0.068 128.73);
--secondary: oklch(0.4 0.067 108.18);
--secondary-foreground: oklch(0.905 0.062 106.765);
--accent: oklch(0.368 0.092 143.136);
--accent-foreground: oklch(0.873 0.082 144.418);
--destructive: oklch(0.523 0.157 40.376);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.382 0.078 130.882);
--chart-1: oklch(0.382 0.078 130.882);
--chart-2: oklch(0.4 0.067 108.18);
--chart-3: oklch(0.368 0.092 143.136);
--chart-4: oklch(0.439 0.075 108.211);
--chart-5: oklch(0.386 0.082 131.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 127.816);
--muted: oklch(0.167 0.009 106.547);
--muted-foreground: oklch(0.745 0.03 106.317);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.002 127.816);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.002 127.816);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.382 0.078 130.882);
--primary-foreground: oklch(0.889 0.068 128.73);
--secondary: oklch(0.4 0.067 108.18);
--secondary-foreground: oklch(0.905 0.062 106.765);
--accent: oklch(0.368 0.092 143.136);
--accent-foreground: oklch(0.873 0.082 144.418);
--destructive: oklch(0.672 0.187 41.824);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.382 0.078 130.882);
--chart-1: oklch(0.382 0.078 130.882);
--chart-2: oklch(0.4 0.067 108.18);
--chart-3: oklch(0.368 0.092 143.136);
--chart-4: oklch(0.439 0.075 108.211);
--chart-5: oklch(0.386 0.082 131.083);
}