Toll is a shadcn/ui theme built around a muted light green primary color (#d2d8c0) with muted light purple accents (#d8c0d2). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted light green primary (#d2d8c0) on a green-tinted background (#090b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #090b04black |
| Foreground | #111504black | #f8f9f6whitesmoke |
| Card | #fdfefbwhite | #090b04black |
| Card foreground | #111504black | #f8f9f6whitesmoke |
| Popover | #fdfefbwhite | #090b04black |
| Popover foreground | #111504black | #f8f9f6whitesmoke |
| Primary | #d2d8c0lightgrey | #d2d8c0lightgrey |
| Primary foreground | #393f27darkslategray | #393f27darkslategray |
| Secondary | #c0d2d8lightgrey | #c0d2d8lightgrey |
| Secondary foreground | #27393fdarkslategray | #27393fdarkslategray |
| Muted | #dbdfe1gainsboro | #1e2224black |
| Muted foreground | #506268dimgray | #97a9afdarkgray |
| Accent | #d8c0d2thistle | #d8c0d2thistle |
| Accent foreground | #3f2739darkslategray | #3f2739darkslategray |
| Destructive | #8e110bdarkred | #ee261bcrimson |
| Destructive foreground | #fbd2d0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2d8c0lightgrey | #d2d8c0lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.30:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 4.76:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Toll in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 117.894);
--foreground: oklch(0.186 0.033 120.528);
--muted: oklch(0.902 0.005 219.545);
--muted-foreground: oklch(0.483 0.024 220.021);
--popover: oklch(0.995 0.004 117.894);
--popover-foreground: oklch(0.186 0.033 120.528);
--card: oklch(0.995 0.004 117.894);
--card-foreground: oklch(0.186 0.033 120.528);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.871 0.032 118.482);
--primary-foreground: oklch(0.354 0.039 119.848);
--secondary: oklch(0.852 0.021 219.713);
--secondary-foreground: oklch(0.331 0.025 220.488);
--accent: oklch(0.834 0.035 334.576);
--accent-foreground: oklch(0.31 0.045 336.164);
--destructive: oklch(0.415 0.159 29.249);
--destructive-foreground: oklch(0.898 0.047 21.616);
--ring: oklch(0.871 0.032 118.482);
--chart-1: oklch(0.871 0.032 118.482);
--chart-2: oklch(0.852 0.021 219.713);
--chart-3: oklch(0.834 0.035 334.576);
--chart-4: oklch(0.874 0.018 219.671);
--chart-5: oklch(0.874 0.036 118.564);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.018 118.161);
--foreground: oklch(0.98 0.003 117.884);
--muted: oklch(0.25 0.006 219.724);
--muted-foreground: oklch(0.723 0.022 219.776);
--popover: oklch(0.145 0.018 118.161);
--popover-foreground: oklch(0.98 0.003 117.884);
--card: oklch(0.145 0.018 118.161);
--card-foreground: oklch(0.98 0.003 117.884);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.871 0.032 118.482);
--primary-foreground: oklch(0.354 0.039 119.848);
--secondary: oklch(0.852 0.021 219.713);
--secondary-foreground: oklch(0.331 0.025 220.488);
--accent: oklch(0.834 0.035 334.576);
--accent-foreground: oklch(0.31 0.045 336.164);
--destructive: oklch(0.609 0.232 29.207);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.032 118.482);
--chart-1: oklch(0.871 0.032 118.482);
--chart-2: oklch(0.852 0.021 219.713);
--chart-3: oklch(0.834 0.035 334.576);
--chart-4: oklch(0.874 0.018 219.671);
--chart-5: oklch(0.874 0.036 118.564);
}