Palenight Theme for shadcn/ui

Palenight Theme is a shadcn/ui theme built around a vivid light teal primary color (#f0ffff) with muted blue accents (#474e6b). The light mode uses a blue-tinted background (#292d3d). Dark mode keeps the vivid light teal primary (#f0ffff) on a blue-tinted background (#292d3d).

Color palette

TokenLightDark
Background
#292d3ddarkslategray
#292d3ddarkslategray
Foreground
#bec6d5lightsteelblue
#bec6d5lightsteelblue
Card
#252837darkslategray
#252837darkslategray
Card foreground
#ced4dflightgrey
#ced4dflightgrey
Popover
#232634darkslategray
#232634darkslategray
Popover foreground
#dde1e9gainsboro
#dde1e9gainsboro
Primary
#f0ffffazure
#f0ffffazure
Primary foreground
#005757darkslategray
#005757darkslategray
Secondary
#2d5353darkslategray
#2d5353darkslategray
Secondary foreground
#cde4e4gainsboro
#cde4e4gainsboro
Muted
#363945darkslategray
#363945darkslategray
Muted foreground
#b5b8c5silver
#b5b8c5silver
Accent
#474e6bdarkslateblue
#474e6bdarkslateblue
Accent foreground
#f0f1f5whitesmoke
#f0f1f5whitesmoke
Destructive
#e21e18crimson
#e21e18crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#393c46darkslategray
#393c46darkslategray
Input
#40434fdarkslategray
#40434fdarkslategray
Ring
#f0ffffazure
#f0ffffazure

Contrast

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

Light mode
Text on background7.99:1AAA
Text on card9.81:1AAA
Primary button8.17:1AAA
Secondary button6.40:1AA
Muted text5.84:1AA
Accent7.23:1AAA
Destructive4.72:1AA
Dark mode
Text on background7.99:1AAA
Text on card9.81:1AAA
Primary button8.17:1AAA
Secondary button6.40:1AA
Muted text5.84:1AA
Accent7.23:1AAA
Destructive4.72:1AA

CSS variables

Paste this into your globals.css to use Palenight Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.299 0.031 274.589);
  --foreground: oklch(0.826 0.022 261.486);
  --muted: oklch(0.345 0.021 275.276);
  --muted-foreground: oklch(0.783 0.019 275.845);
  --popover: oklch(0.271 0.027 274.661);
  --popover-foreground: oklch(0.91 0.011 261.507);
  --card: oklch(0.281 0.028 274.635);
  --card-foreground: oklch(0.868 0.016 261.499);
  --border: oklch(0.357 0.018 275.439);
  --input: oklch(0.384 0.02 275.423);
  --primary: oklch(0.989 0.016 196.897);
  --primary-foreground: oklch(0.413 0.07 194.769);
  --secondary: oklch(0.414 0.044 195.596);
  --secondary-foreground: oklch(0.903 0.024 196.729);
  --accent: oklch(0.43 0.049 274.385);
  --accent-foreground: oklch(0.958 0.006 276.089);
  --destructive: oklch(0.583 0.226 28.911);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.016 196.897);
  --chart-1: oklch(0.989 0.016 196.897);
  --chart-2: oklch(0.414 0.044 195.596);
  --chart-3: oklch(0.43 0.049 274.385);
  --chart-4: oklch(0.447 0.048 195.577);
  --chart-5: oklch(0.989 0.017 196.89);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.299 0.031 274.589);
  --foreground: oklch(0.826 0.022 261.486);
  --muted: oklch(0.345 0.021 275.276);
  --muted-foreground: oklch(0.783 0.019 275.845);
  --popover: oklch(0.271 0.027 274.661);
  --popover-foreground: oklch(0.91 0.011 261.507);
  --card: oklch(0.281 0.028 274.635);
  --card-foreground: oklch(0.868 0.016 261.499);
  --border: oklch(0.357 0.018 275.439);
  --input: oklch(0.384 0.02 275.423);
  --primary: oklch(0.989 0.016 196.897);
  --primary-foreground: oklch(0.413 0.07 194.769);
  --secondary: oklch(0.414 0.044 195.596);
  --secondary-foreground: oklch(0.903 0.024 196.729);
  --accent: oklch(0.43 0.049 274.385);
  --accent-foreground: oklch(0.958 0.006 276.089);
  --destructive: oklch(0.583 0.226 28.911);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.016 196.897);
  --chart-1: oklch(0.989 0.016 196.897);
  --chart-2: oklch(0.414 0.044 195.596);
  --chart-3: oklch(0.43 0.049 274.385);
  --chart-4: oklch(0.447 0.048 195.577);
  --chart-5: oklch(0.989 0.017 196.89);
}