Toll is a shadcn/ui theme built around a muted violet primary color (#6d5e8d) with muted light violet accents (#c3bad4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#6d5e8d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #06030cblack | #f7f5fawhitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040208black | #f9f8fbghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #040208black | #f9f8fbghostwhite |
| Primary | #6d5e8dslategray | #6d5e8dslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6d2e0gainsboro | #28282adarkslategray |
| Secondary foreground | #3c344bdarkslategray | #c1c0c4silver |
| Muted | #dad6e0gainsboro | #221f29black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #c3bad4silver | #383342darkslategray |
| Accent foreground | #2a2338darkslategray | #d2ced9lightgrey |
| Destructive | #c15110chocolate | #ed6c21chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d5e8dslategray | #6d5e8dslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.77:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Toll in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.027 301.819);
--muted: oklch(0.883 0.014 301.237);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.024 302.102);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.024 302.102);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.515 0.075 299.08);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.871 0.019 301.135);
--secondary-foreground: oklch(0.344 0.041 299.553);
--accent: oklch(0.804 0.037 300.75);
--accent-foreground: oklch(0.275 0.039 299.118);
--destructive: oklch(0.573 0.16 44.201);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.515 0.075 299.08);
--chart-1: oklch(0.515 0.075 299.08);
--chart-2: oklch(0.871 0.019 301.135);
--chart-3: oklch(0.804 0.037 300.75);
--chart-4: oklch(0.897 0.015 301.217);
--chart-5: oklch(0.509 0.086 298.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.006 301.385);
--muted: oklch(0.246 0.019 300.221);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.982 0.004 301.422);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.004 301.422);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.515 0.075 299.08);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.277 0.005 301.226);
--secondary-foreground: oklch(0.81 0.005 301.388);
--accent: oklch(0.333 0.027 300.161);
--accent-foreground: oklch(0.858 0.016 301.194);
--destructive: oklch(0.678 0.178 45.566);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.515 0.075 299.08);
--chart-1: oklch(0.515 0.075 299.08);
--chart-2: oklch(0.277 0.005 301.226);
--chart-3: oklch(0.333 0.027 300.161);
--chart-4: oklch(0.307 0.005 301.215);
--chart-5: oklch(0.509 0.086 298.65);
}