Proximal is a shadcn/ui theme built around a deep violet primary color (#351a47) with deep purple accents (#471a42). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#351a47) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #030104black | #faf9fbghostwhite |
| Card | #faf7fdghostwhite | #030303black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #030104black | #faf9fbghostwhite |
| Primary | #351a47midnightblue | #351a47midnightblue |
| Primary foreground | #ceb1e2thistle | #ceb1e2thistle |
| Secondary | #1f1a47midnightblue | #1f1a47midnightblue |
| Secondary foreground | #b6b1e2lightsteelblue | #b6b1e2lightsteelblue |
| Muted | #dddce5gainsboro | #1b1a23black |
| Muted foreground | #5f5e68dimgray | #9897a1darkgray |
| Accent | #471a42darkslategray | #471a42darkslategray |
| Accent foreground | #e2b1ddplum | #e2b1ddplum |
| Destructive | #8d1607darkred | #f6523ctomato |
| Destructive foreground | #fccfc9pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #351a47midnightblue | #351a47midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Proximal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 312.328);
--foreground: oklch(0.08 0.021 314.566);
--muted: oklch(0.898 0.012 290.769);
--muted-foreground: oklch(0.488 0.016 290.398);
--popover: oklch(0.99 0.004 312.328);
--popover-foreground: oklch(0.08 0.021 314.566);
--card: oklch(0.981 0.008 312.297);
--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.279 0.083 309.743);
--primary-foreground: oklch(0.802 0.075 311.66);
--secondary: oklch(0.252 0.08 283.534);
--secondary-foreground: oklch(0.781 0.07 289.258);
--accent: oklch(0.303 0.089 331.53);
--accent-foreground: oklch(0.818 0.082 329.642);
--destructive: oklch(0.416 0.155 31.019);
--destructive-foreground: oklch(0.893 0.052 26.936);
--ring: oklch(0.279 0.083 309.743);
--chart-1: oklch(0.279 0.083 309.743);
--chart-2: oklch(0.252 0.08 283.534);
--chart-3: oklch(0.303 0.089 331.53);
--chart-4: oklch(0.275 0.091 283.191);
--chart-5: oklch(0.278 0.088 309.511);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 312.336);
--muted: oklch(0.224 0.017 289.573);
--muted-foreground: oklch(0.679 0.014 290.609);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 312.336);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 312.347);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.279 0.083 309.743);
--primary-foreground: oklch(0.802 0.075 311.66);
--secondary: oklch(0.252 0.08 283.534);
--secondary-foreground: oklch(0.781 0.07 289.258);
--accent: oklch(0.303 0.089 331.53);
--accent-foreground: oklch(0.818 0.082 329.642);
--destructive: oklch(0.661 0.204 30.648);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.279 0.083 309.743);
--chart-1: oklch(0.279 0.083 309.743);
--chart-2: oklch(0.252 0.08 283.534);
--chart-3: oklch(0.303 0.089 331.53);
--chart-4: oklch(0.275 0.091 283.191);
--chart-5: oklch(0.278 0.088 309.511);
}