Well-lit for shadcn/ui

Well-lit is a shadcn/ui theme built around a muted blue primary color (#7882b5) with muted yellow accents (#b5ab78). The light mode uses a neutral background (#f8f9fb). Dark mode keeps the muted blue primary (#7882b5) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#f8f9fbghostwhite
#020308black
Foreground
#040610black
#ffffffwhite
Card
#f8f9fbghostwhite
#020308black
Card foreground
#040610black
#ffffffwhite
Popover
#f8f9fbghostwhite
#020308black
Popover foreground
#040610black
#ffffffwhite
Primary
#7882b5lightslategray
#7882b5lightslategray
Primary foreground
#000000black
#000000black
Secondary
#b5ab78darkkhaki
#b5ab78darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#edeadebeige
#211e12black
Muted foreground
#535146darkolivegreen
#b9b7acdarkgray
Accent
#b5ab78darkkhaki
#b5ab78darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#792a0bsaddlebrown
#ea591fchocolate
Destructive foreground
#f9cebepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7882b5lightslategray
#7882b5lightslategray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button5.67:1AA
Secondary button9.03:1AAA
Muted text6.63:1AA
Accent9.03:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button5.67:1AA
Secondary button9.03:1AAA
Muted text8.25:1AAA
Accent9.03:1AAA
Destructive3.53: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.982 0.003 277.212);
  --foreground: oklch(0.127 0.024 270.757);
  --muted: oklch(0.937 0.017 97.491);
  --muted-foreground: oklch(0.434 0.019 97.782);
  --popover: oklch(0.982 0.003 277.212);
  --popover-foreground: oklch(0.127 0.024 270.757);
  --card: oklch(0.982 0.003 277.212);
  --card-foreground: oklch(0.127 0.024 270.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.619 0.077 275.199);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.736 0.069 98.207);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.736 0.069 98.207);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.4 0.117 39.319);
  --destructive-foreground: oklch(0.885 0.053 42.704);
  --ring: oklch(0.619 0.077 275.199);
  --chart-1: oklch(0.619 0.077 275.199);
  --chart-2: oklch(0.736 0.069 98.207);
  --chart-3: oklch(0.736 0.069 98.207);
  --chart-4: oklch(0.756 0.064 98.152);
  --chart-5: oklch(0.614 0.086 274.923);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.018 270.247);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.022 98.213);
  --muted-foreground: oklch(0.778 0.016 97.528);
  --popover: oklch(0.1 0.018 270.247);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.1 0.018 270.247);
  --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.619 0.077 275.199);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.736 0.069 98.207);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.736 0.069 98.207);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.648 0.192 39.211);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.619 0.077 275.199);
  --chart-1: oklch(0.619 0.077 275.199);
  --chart-2: oklch(0.736 0.069 98.207);
  --chart-3: oklch(0.736 0.069 98.207);
  --chart-4: oklch(0.756 0.064 98.152);
  --chart-5: oklch(0.614 0.086 274.923);
}