Reach is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0a0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0a0505black |
| Foreground | #150505black | #f8f6f6whitesmoke |
| Card | #fcf8f8snow | #0a0505black |
| Card foreground | #150505black | #f8f6f6whitesmoke |
| Popover | #fcf8f8snow | #0a0505black |
| Popover foreground | #150505black | #f8f6f6whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #e6d5d5gainsboro | #2a1919black |
| Muted foreground | #6e5959dimgray | #a69191rosybrown |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #a81305firebrick | #f8200dred |
| Destructive foreground | #fee4e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 4.59:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Reach in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 17.242);
--foreground: oklch(0.143 0.032 21.878);
--muted: oklch(0.888 0.019 17.519);
--muted-foreground: oklch(0.484 0.029 18.197);
--popover: oklch(0.981 0.005 17.242);
--popover-foreground: oklch(0.143 0.032 21.878);
--card: oklch(0.981 0.005 17.242);
--card-foreground: oklch(0.143 0.032 21.878);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.467 0.182 30.16);
--destructive-foreground: oklch(0.939 0.029 23.91);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.01 18.604);
--foreground: oklch(0.976 0.002 17.194);
--muted: oklch(0.234 0.028 19.376);
--muted-foreground: oklch(0.675 0.026 17.822);
--popover: oklch(0.126 0.01 18.604);
--popover-foreground: oklch(0.976 0.002 17.194);
--card: oklch(0.126 0.01 18.604);
--card-foreground: oklch(0.976 0.002 17.194);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.623 0.243 30.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}