Reach is a shadcn/ui theme built around a violet primary color (#6d2395) with purple accents (#952384). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#6d2395) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #060208black |
| Foreground | #09020dblack | #f8f6f9whitesmoke |
| Card | #fdfcfdwhite | #060208black |
| Card foreground | #09020dblack | #f8f6f9whitesmoke |
| Popover | #fdfcfdwhite | #060208black |
| Popover foreground | #09020dblack | #f8f6f9whitesmoke |
| Primary | #6d2395rebeccapurple | #6d2395rebeccapurple |
| Primary foreground | #f7eefbwhitesmoke | #f7eefbwhitesmoke |
| Secondary | #342395darkslateblue | #342395darkslateblue |
| Secondary foreground | #f0eefbwhitesmoke | #f0eefbwhitesmoke |
| Muted | #eeedf3whitesmoke | #0d0c12black |
| Muted foreground | #3c3a45darkslategray | #bbbac5silver |
| Accent | #952384darkmagenta | #952384darkmagenta |
| Accent foreground | #fbeef9lavenderblush | #fbeef9lavenderblush |
| Destructive | #be1004firebrick | #fa1f0fred |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d2395rebeccapurple | #6d2395rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 10.08:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 10.08:1 | AAA |
| Muted text | 10.12:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Reach in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 314.207);
--foreground: oklch(0.116 0.034 316.117);
--muted: oklch(0.948 0.008 293.151);
--muted-foreground: oklch(0.355 0.02 292.24);
--popover: oklch(0.991 0.002 314.207);
--popover-foreground: oklch(0.116 0.034 316.117);
--card: oklch(0.991 0.002 314.207);
--card-foreground: oklch(0.116 0.034 316.117);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.178 310.531);
--primary-foreground: oklch(0.961 0.019 314.111);
--secondary: oklch(0.363 0.174 280.055);
--secondary-foreground: oklch(0.956 0.017 292.972);
--accent: oklch(0.476 0.181 334.991);
--accent-foreground: oklch(0.964 0.02 330.506);
--destructive: oklch(0.508 0.202 29.857);
--destructive-foreground: oklch(0.979 0.01 22.329);
--ring: oklch(0.427 0.178 310.531);
--chart-1: oklch(0.427 0.178 310.531);
--chart-2: oklch(0.363 0.174 280.055);
--chart-3: oklch(0.476 0.181 334.991);
--chart-4: oklch(0.383 0.185 279.851);
--chart-5: oklch(0.428 0.184 310.242);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.021 315.936);
--foreground: oklch(0.975 0.005 314.194);
--muted: oklch(0.16 0.012 291.832);
--muted-foreground: oklch(0.792 0.016 292.922);
--popover: oklch(0.105 0.021 315.936);
--popover-foreground: oklch(0.975 0.005 314.194);
--card: oklch(0.105 0.021 315.936);
--card-foreground: oklch(0.975 0.005 314.194);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.178 310.531);
--primary-foreground: oklch(0.961 0.019 314.111);
--secondary: oklch(0.363 0.174 280.055);
--secondary-foreground: oklch(0.956 0.017 292.972);
--accent: oklch(0.476 0.181 334.991);
--accent-foreground: oklch(0.964 0.02 330.506);
--destructive: oklch(0.627 0.246 29.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.178 310.531);
--chart-1: oklch(0.427 0.178 310.531);
--chart-2: oklch(0.363 0.174 280.055);
--chart-3: oklch(0.476 0.181 334.991);
--chart-4: oklch(0.383 0.185 279.851);
--chart-5: oklch(0.428 0.184 310.242);
}