Well-lit is a shadcn/ui theme built around a vivid purple primary color (#ef34cc) with vivid cyan accents (#34ccef). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#ef34cc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #140611black | #fdfcfdwhite |
| Card | #fdf7fcsnow | #030303black |
| Card foreground | #10050eblack | #ffffffwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #140611black | #fdfcfdwhite |
| Primary | #ef34cchotpink | #ef34cchotpink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ccef34greenyellow | #ccef34greenyellow |
| Secondary foreground | #435007darkolivegreen | #435007darkolivegreen |
| Muted | #e6ebd1antiquewhite | #292e14black |
| Muted foreground | #555846darkolivegreen | #b5b9a7darkgray |
| Accent | #34ccefturquoise | #34ccefturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #5c200amaroon | #d34a17chocolate |
| Destructive foreground | #f5b9a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ef34cchotpink | #ef34cchotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 3.48:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 5.97:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 7.42:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 3.48:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Well-lit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 331.476);
--foreground: oklch(0.151 0.033 333.947);
--muted: oklch(0.929 0.035 115.511);
--muted-foreground: oklch(0.451 0.028 115.956);
--popover: oklch(0.991 0.005 331.476);
--popover-foreground: oklch(0.151 0.033 333.947);
--card: oklch(0.982 0.01 331.547);
--card-foreground: oklch(0.138 0.029 333.416);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.666 0.262 337.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.896 0.199 120.078);
--secondary-foreground: oklch(0.406 0.093 120.456);
--accent: oklch(0.784 0.129 217.131);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.331 0.094 38.917);
--destructive-foreground: oklch(0.835 0.076 40.872);
--ring: oklch(0.666 0.262 337.024);
--chart-1: oklch(0.666 0.262 337.024);
--chart-2: oklch(0.896 0.199 120.078);
--chart-3: oklch(0.784 0.129 217.131);
--chart-4: oklch(0.901 0.192 119.616);
--chart-5: oklch(0.67 0.267 337.182);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 331.42);
--muted: oklch(0.29 0.043 117.714);
--muted-foreground: oklch(0.777 0.024 115.403);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 331.42);
--card: oklch(0.092 0 180);
--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.666 0.262 337.024);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.896 0.199 120.078);
--secondary-foreground: oklch(0.406 0.093 120.456);
--accent: oklch(0.784 0.129 217.131);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.592 0.182 37.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.666 0.262 337.024);
--chart-1: oklch(0.666 0.262 337.024);
--chart-2: oklch(0.896 0.199 120.078);
--chart-3: oklch(0.784 0.129 217.131);
--chart-4: oklch(0.901 0.192 119.616);
--chart-5: oklch(0.67 0.267 337.182);
}