Road is a shadcn/ui theme built around a green primary color (#1eb34d) with muted light green accents (#d3dfd7). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#1eb34d) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #041008black | #ffffffwhite |
| Card | #fbfefcwhite | #010402black |
| Card foreground | #041008black | #ffffffwhite |
| Popover | #fbfefcwhite | #010402black |
| Popover foreground | #041008black | #ffffffwhite |
| Primary | #1eb34dlimegreen | #1eb34dlimegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3dfd7gainsboro | #2d342fdarkslategray |
| Secondary foreground | #364a3cdarkslategray | #c5cec8silver |
| Muted | #f0f4f1whitesmoke | #0b0f0cblack |
| Muted foreground | #506857dimgray | #97af9fdarkgray |
| Accent | #d3dfd7gainsboro | #2d342fdarkslategray |
| Accent foreground | #364a3cdarkslategray | #c5cec8silver |
| Destructive | #d6290afirebrick | #db2a0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1eb34dlimegreen | #1eb34dlimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 2.76:1 | Fail |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.48:1 | AA |
| Accent | 6.93:1 | AA |
| Destructive | 5.01:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 2.76:1 | Fail |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Road in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 156.473);
--foreground: oklch(0.158 0.025 154.918);
--muted: oklch(0.964 0.006 156.436);
--muted-foreground: oklch(0.492 0.039 154.907);
--popover: oklch(0.994 0.004 156.473);
--popover-foreground: oklch(0.158 0.025 154.918);
--card: oklch(0.994 0.004 156.473);
--card-foreground: oklch(0.158 0.025 154.918);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.671 0.185 148.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.892 0.017 156.173);
--secondary-foreground: oklch(0.387 0.035 154.637);
--accent: oklch(0.892 0.017 156.173);
--accent-foreground: oklch(0.387 0.035 154.637);
--destructive: oklch(0.567 0.211 31.735);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.671 0.185 148.1);
--chart-1: oklch(0.671 0.185 148.1);
--chart-2: oklch(0.892 0.017 156.173);
--chart-3: oklch(0.892 0.017 156.173);
--chart-4: oklch(0.913 0.014 156.26);
--chart-5: oklch(0.679 0.19 147.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 156.201);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.009 155.375);
--muted-foreground: oklch(0.731 0.035 155.575);
--popover: oklch(0.097 0.013 156.201);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.013 156.201);
--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.671 0.185 148.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.317 0.014 155.652);
--secondary-foreground: oklch(0.842 0.012 156.27);
--accent: oklch(0.317 0.014 155.652);
--accent-foreground: oklch(0.842 0.012 156.27);
--destructive: oklch(0.576 0.215 31.722);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.671 0.185 148.1);
--chart-1: oklch(0.671 0.185 148.1);
--chart-2: oklch(0.317 0.014 155.652);
--chart-3: oklch(0.317 0.014 155.652);
--chart-4: oklch(0.348 0.016 155.624);
--chart-5: oklch(0.679 0.19 147.816);
}