βui - Material Palenight for shadcn/ui

βui - Material Palenight is a shadcn/ui theme built around a green primary color (#88cb2a) with muted blue accents (#474f6b). The light mode uses a blue-tinted background (#292d3d). Dark mode keeps the green primary (#88cb2a) on a blue-tinted background (#292d3d).

Color palette

TokenLightDark
Background
#292d3ddarkslategray
#292d3ddarkslategray
Foreground
#c5cae2lightsteelblue
#c5cae2lightsteelblue
Card
#252837darkslategray
#252837darkslategray
Card foreground
#d6d9ebgainsboro
#d6d9ebgainsboro
Popover
#232634darkslategray
#232634darkslategray
Popover foreground
#e7e9f3lavender
#e7e9f3lavender
Primary
#88cb2ayellowgreen
#88cb2ayellowgreen
Primary foreground
#172207black
#172207black
Secondary
#43532ddarkolivegreen
#43532ddarkolivegreen
Secondary foreground
#dbe4cdgainsboro
#dbe4cdgainsboro
Muted
#363945darkslategray
#363945darkslategray
Muted foreground
#b5b8c5silver
#b5b8c5silver
Accent
#474f6bdarkslateblue
#474f6bdarkslateblue
Accent foreground
#f0f1f5whitesmoke
#f0f1f5whitesmoke
Destructive
#f04a2dtomato
#f04a2dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#393c46darkslategray
#393c46darkslategray
Input
#40434fdarkslategray
#40434fdarkslategray
Ring
#88cb2ayellowgreen
#88cb2ayellowgreen

Contrast

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

Light mode
Text on background8.41:1AAA
Text on card10.39:1AAA
Primary button8.38:1AAA
Secondary button6.37:1AA
Muted text5.83:1AA
Accent7.18:1AAA
Destructive3.65:1AA Large
Dark mode
Text on background8.41:1AAA
Text on card10.39:1AAA
Primary button8.38:1AAA
Secondary button6.37:1AA
Muted text5.83:1AA
Accent7.18:1AAA
Destructive3.65:1AA Large

CSS variables

Paste this into your globals.css to use βui - Material Palenight in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.3 0.03 273.568);
  --foreground: oklch(0.842 0.035 276.658);
  --muted: oklch(0.346 0.021 274.209);
  --muted-foreground: oklch(0.784 0.018 274.738);
  --popover: oklch(0.272 0.026 273.635);
  --popover-foreground: oklch(0.936 0.014 277.053);
  --card: oklch(0.281 0.028 273.611);
  --card-foreground: oklch(0.889 0.024 276.873);
  --border: oklch(0.357 0.018 274.361);
  --input: oklch(0.385 0.02 274.346);
  --primary: oklch(0.769 0.195 130.513);
  --primary-foreground: oklch(0.233 0.048 128.554);
  --secondary: oklch(0.418 0.062 127.374);
  --secondary-foreground: oklch(0.906 0.032 125.545);
  --accent: oklch(0.432 0.048 273.378);
  --accent-foreground: oklch(0.958 0.006 274.963);
  --destructive: oklch(0.643 0.207 32.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.195 130.513);
  --chart-1: oklch(0.769 0.195 130.513);
  --chart-2: oklch(0.418 0.062 127.374);
  --chart-3: oklch(0.432 0.048 273.378);
  --chart-4: oklch(0.451 0.068 127.417);
  --chart-5: oklch(0.778 0.2 130.758);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.3 0.03 273.568);
  --foreground: oklch(0.842 0.035 276.658);
  --muted: oklch(0.346 0.021 274.209);
  --muted-foreground: oklch(0.784 0.018 274.738);
  --popover: oklch(0.272 0.026 273.635);
  --popover-foreground: oklch(0.936 0.014 277.053);
  --card: oklch(0.281 0.028 273.611);
  --card-foreground: oklch(0.889 0.024 276.873);
  --border: oklch(0.357 0.018 274.361);
  --input: oklch(0.385 0.02 274.346);
  --primary: oklch(0.769 0.195 130.513);
  --primary-foreground: oklch(0.233 0.048 128.554);
  --secondary: oklch(0.418 0.062 127.374);
  --secondary-foreground: oklch(0.906 0.032 125.545);
  --accent: oklch(0.432 0.048 273.378);
  --accent-foreground: oklch(0.958 0.006 274.963);
  --destructive: oklch(0.643 0.207 32.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.195 130.513);
  --chart-1: oklch(0.769 0.195 130.513);
  --chart-2: oklch(0.418 0.062 127.374);
  --chart-3: oklch(0.432 0.048 273.378);
  --chart-4: oklch(0.451 0.068 127.417);
  --chart-5: oklch(0.778 0.2 130.758);
}