City Lights for shadcn/ui

City Lights is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted deep blue accents (#3a4b59). The light mode uses a blue-tinted background (#1c242b). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#1c242b).

Color palette

TokenLightDark
Background
#1c242bdarkslategray
#1c242bdarkslategray
Foreground
#b6c4d2lightsteelblue
#b6c4d2lightsteelblue
Card
#181f25black
#181f25black
Card foreground
#c6d1dclightgrey
#c6d1dclightgrey
Popover
#161c22black
#161c22black
Popover foreground
#d6dee6gainsboro
#d6dee6gainsboro
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#282e33darkslategray
#282e33darkslategray
Muted foreground
#a4aeb7darkgray
#a4aeb7darkgray
Accent
#3a4b59darkslategray
#3a4b59darkslategray
Accent foreground
#dde3e9gainsboro
#dde3e9gainsboro
Destructive
#f92824crimson
#f92824crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2b3136darkslategray
#2b3136darkslategray
Input
#32393edarkslategray
#32393edarkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background8.81:1AAA
Text on card10.73:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.06:1AA
Accent6.95:1AA
Destructive3.91:1AA Large
Dark mode
Text on background8.81:1AAA
Text on card10.73:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.06:1AA
Accent6.95:1AA
Destructive3.91:1AA Large

CSS variables

Paste this into your globals.css to use City Lights in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.256 0.018 244.961);
  --foreground: oklch(0.815 0.025 248.137);
  --muted: oklch(0.299 0.012 244.609);
  --muted-foreground: oklch(0.746 0.018 244.383);
  --popover: oklch(0.224 0.014 244.895);
  --popover-foreground: oklch(0.896 0.014 247.982);
  --card: oklch(0.235 0.015 244.919);
  --card-foreground: oklch(0.856 0.019 248.056);
  --border: oklch(0.309 0.012 244.571);
  --input: oklch(0.339 0.014 244.587);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.404 0.032 245.125);
  --accent-foreground: oklch(0.914 0.01 244.227);
  --destructive: oklch(0.631 0.24 28.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.404 0.032 245.125);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.256 0.018 244.961);
  --foreground: oklch(0.815 0.025 248.137);
  --muted: oklch(0.299 0.012 244.609);
  --muted-foreground: oklch(0.746 0.018 244.383);
  --popover: oklch(0.224 0.014 244.895);
  --popover-foreground: oklch(0.896 0.014 247.982);
  --card: oklch(0.235 0.015 244.919);
  --card-foreground: oklch(0.856 0.019 248.056);
  --border: oklch(0.309 0.012 244.571);
  --input: oklch(0.339 0.014 244.587);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.404 0.032 245.125);
  --accent-foreground: oklch(0.914 0.01 244.227);
  --destructive: oklch(0.631 0.24 28.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.404 0.032 245.125);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}