Well-lit for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.06:1AAA
Secondary button7.16:1AAA
Muted text6.49:1AA
Accent7.87:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button7.06:1AAA
Secondary button8.04:1AAA
Muted text8.27:1AAA
Accent8.03:1AAA
Destructive3.88:1AA Large

CSS variables

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);
}