Well-lit is a shadcn/ui theme built around a vivid deep blue primary color (#051433) with muted light blue accents (#c6ccd7). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid deep blue primary (#051433) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020203black |
| Foreground | #03060cblack | #f5f7f9whitesmoke |
| Card | #fbfcfewhite | #020203black |
| Card foreground | #03060cblack | #f5f7f9whitesmoke |
| Popover | #fbfcfewhite | #020203black |
| Popover foreground | #03060cblack | #f5f7f9whitesmoke |
| Primary | #051433black | #051433black |
| Primary foreground | #79a1f1cornflowerblue | #79a1f1cornflowerblue |
| Secondary | #e0e2e6gainsboro | #191d24black |
| Secondary foreground | #434751darkslategray | #aab3c5silver |
| Muted | #dbe0ebgainsboro | #141924black |
| Muted foreground | #4c4c4ddarkslategray | #b2b2b3darkgray |
| Accent | #c6ccd7lightgrey | #242c3ddarkslategray |
| Accent foreground | #2c333fdarkslategray | #bcc5d7lightsteelblue |
| Destructive | #6b0d0amaroon | #ed413btomato |
| Destructive foreground | #f8b2b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #051433black | #051433black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.88: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.003 264.542);
--foreground: oklch(0.122 0.016 256.749);
--muted: oklch(0.906 0.016 264.488);
--muted-foreground: oklch(0.417 0.002 264.538);
--popover: oklch(0.991 0.003 264.542);
--popover-foreground: oklch(0.122 0.016 256.749);
--card: oklch(0.991 0.003 264.542);
--card-foreground: oklch(0.122 0.016 256.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.201 0.064 261.627);
--primary-foreground: oklch(0.714 0.125 263.322);
--secondary: oklch(0.912 0.005 264.532);
--secondary-foreground: oklch(0.399 0.018 264.35);
--accent: oklch(0.844 0.016 264.48);
--accent-foreground: oklch(0.319 0.023 264.165);
--destructive: oklch(0.341 0.127 28.49);
--destructive-foreground: oklch(0.828 0.082 21.198);
--ring: oklch(0.201 0.064 261.627);
--chart-1: oklch(0.201 0.064 261.627);
--chart-2: oklch(0.912 0.005 264.532);
--chart-3: oklch(0.844 0.016 264.48);
--chart-4: oklch(0.937 0.004 264.538);
--chart-5: oklch(0.201 0.066 261.331);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 259.594);
--foreground: oklch(0.975 0.004 264.54);
--muted: oklch(0.215 0.023 263.905);
--muted-foreground: oklch(0.764 0.002 264.545);
--popover: oklch(0.087 0.007 259.594);
--popover-foreground: oklch(0.975 0.004 264.54);
--card: oklch(0.087 0.007 259.594);
--card-foreground: oklch(0.975 0.004 264.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.201 0.064 261.627);
--primary-foreground: oklch(0.714 0.125 263.322);
--secondary: oklch(0.229 0.016 264.182);
--secondary-foreground: oklch(0.766 0.028 264.398);
--accent: oklch(0.294 0.033 263.865);
--accent-foreground: oklch(0.821 0.028 264.41);
--destructive: oklch(0.629 0.209 27.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.201 0.064 261.627);
--chart-1: oklch(0.201 0.064 261.627);
--chart-2: oklch(0.229 0.016 264.182);
--chart-3: oklch(0.294 0.033 263.865);
--chart-4: oklch(0.259 0.02 264.147);
--chart-5: oklch(0.201 0.066 261.331);
}