Proximity is a shadcn/ui theme built around a violet primary color (#b499d6) with green accents (#bcd699). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#b499d6) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020104black |
| Foreground | #000000black | #ffffffwhite |
| Card | #faf7fcghostwhite | #050208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfbfewhite | #020104black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b499d6plum | #b499d6plum |
| Primary foreground | #1d112cblack | #1d112cblack |
| Secondary | #bcd699tan | #bcd699tan |
| Secondary foreground | #202c11black | #202c11black |
| Muted | #dee1dagainsboro | #22251eblack |
| Muted foreground | #4f514ddarkslategray | #b0b2aedarkgray |
| Accent | #bcd699tan | #bcd699tan |
| Accent foreground | #202c11black | #202c11black |
| Destructive | #6d0c03maroon | #fa4433tomato |
| Destructive foreground | #fdada5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b499d6plum | #b499d6plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 9.25:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.80:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 9.25:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Proximity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 305.692);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.01 125.892);
--muted-foreground: oklch(0.433 0.008 125.99);
--popover: oklch(0.99 0.004 305.692);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 305.643);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.728 0.092 304.039);
--primary-foreground: oklch(0.21 0.052 302.129);
--secondary: oklch(0.842 0.087 127.2);
--secondary-foreground: oklch(0.274 0.047 128.443);
--accent: oklch(0.842 0.087 127.2);
--accent-foreground: oklch(0.274 0.047 128.443);
--destructive: oklch(0.344 0.131 30.595);
--destructive-foreground: oklch(0.822 0.095 25.089);
--ring: oklch(0.728 0.092 304.039);
--chart-1: oklch(0.728 0.092 304.039);
--chart-2: oklch(0.842 0.087 127.2);
--chart-3: oklch(0.842 0.087 127.2);
--chart-4: oklch(0.859 0.077 127.003);
--chart-5: oklch(0.725 0.098 303.906);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.019 307.124);
--foreground: oklch(1 0 180);
--muted: oklch(0.258 0.014 126.484);
--muted-foreground: oklch(0.762 0.007 125.863);
--popover: oklch(0.079 0.019 307.124);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.1 0.024 307.124);
--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.728 0.092 304.039);
--primary-foreground: oklch(0.21 0.052 302.129);
--secondary: oklch(0.842 0.087 127.2);
--secondary-foreground: oklch(0.274 0.047 128.443);
--accent: oklch(0.842 0.087 127.2);
--accent-foreground: oklch(0.274 0.047 128.443);
--destructive: oklch(0.653 0.221 29.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.092 304.039);
--chart-1: oklch(0.728 0.092 304.039);
--chart-2: oklch(0.842 0.087 127.2);
--chart-3: oklch(0.842 0.087 127.2);
--chart-4: oklch(0.859 0.077 127.003);
--chart-5: oklch(0.725 0.098 303.906);
}