Well-lit for shadcn/ui

Well-lit is a shadcn/ui theme built around a light blue primary color (#b6d1ec) with light indigo accents (#b6b6ec). The light mode uses a neutral background (#f8fafb). Dark mode keeps the light blue primary (#b6d1ec) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fafbghostwhite
#000000black
Foreground
#010509black
#ffffffwhite
Card
#f5f7fawhitesmoke
#030303black
Card foreground
#010304black
#ffffffwhite
Popover
#f5f7fawhitesmoke
#030303black
Popover foreground
#010304black
#ffffffwhite
Primary
#b6d1eclightblue
#b6d1eclightblue
Primary foreground
#173859darkslategray
#173859darkslategray
Secondary
#b6ececpaleturquoise
#b6ececpaleturquoise
Secondary foreground
#175959darkslategray
#175959darkslategray
Muted
#d6dcdcgainsboro
#232929darkslategray
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#b6b6eclightsteelblue
#b6b6eclightsteelblue
Accent foreground
#171759midnightblue
#171759midnightblue
Destructive
#7b200amaroon
#ef5934tomato
Destructive foreground
#fac9bdpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6d1eclightblue
#b6d1eclightblue

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.29:1AAA
Primary button7.63:1AAA
Secondary button6.21:1AA
Muted text6.07:1AA
Accent8.36:1AAA
Destructive6.89:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.63:1AAA
Secondary button6.21:1AA
Muted text7.02:1AAA
Accent8.36:1AAA
Destructive6.14:1AA

CSS variables

Paste this into your globals.css to use Well-lit in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 247.85);
  --foreground: oklch(0.111 0.016 237.74);
  --muted: oklch(0.889 0.007 197.037);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.976 0.004 247.865);
  --popover-foreground: oklch(0.088 0.012 237.74);
  --card: oklch(0.976 0.004 247.865);
  --card-foreground: oklch(0.088 0.012 237.74);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.85 0.048 248.389);
  --primary-foreground: oklch(0.334 0.07 250.736);
  --secondary: oklch(0.907 0.055 196.221);
  --secondary-foreground: oklch(0.425 0.064 195.017);
  --accent: oklch(0.795 0.076 284.53);
  --accent-foreground: oklch(0.258 0.115 274.757);
  --destructive: oklch(0.389 0.128 34.427);
  --destructive-foreground: oklch(0.875 0.058 34.382);
  --ring: oklch(0.85 0.048 248.389);
  --chart-1: oklch(0.85 0.048 248.389);
  --chart-2: oklch(0.907 0.055 196.221);
  --chart-3: oklch(0.795 0.076 284.53);
  --chart-4: oklch(0.922 0.046 196.375);
  --chart-5: oklch(0.849 0.05 248.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.009 196.66);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --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.85 0.048 248.389);
  --primary-foreground: oklch(0.334 0.07 250.736);
  --secondary: oklch(0.907 0.055 196.221);
  --secondary-foreground: oklch(0.425 0.064 195.017);
  --accent: oklch(0.795 0.076 284.53);
  --accent-foreground: oklch(0.258 0.115 274.757);
  --destructive: oklch(0.657 0.191 35.054);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.85 0.048 248.389);
  --chart-1: oklch(0.85 0.048 248.389);
  --chart-2: oklch(0.907 0.055 196.221);
  --chart-3: oklch(0.795 0.076 284.53);
  --chart-4: oklch(0.922 0.046 196.375);
  --chart-5: oklch(0.849 0.05 248.418);
}