Minimal Midnight Dreams for shadcn/ui

Minimal Midnight Dreams is a shadcn/ui theme built around a deep blue primary color (#0b2432) with muted light blue accents (#d3dbdf). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0b2432) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#ffffffwhite
#020608black
Foreground
#03090dblack
#fcfdfdwhite
Card
#ffffffwhite
#020608black
Card foreground
#03090dblack
#fcfdfdwhite
Popover
#ffffffwhite
#020608black
Popover foreground
#03090dblack
#fcfdfdwhite
Primary
#0b2432black
#0b2432black
Primary foreground
#8ac5e5skyblue
#8ac5e5skyblue
Secondary
#d3dbdfgainsboro
#1d2225black
Secondary foreground
#36434adarkslategray
#b2bdc2silver
Muted
#eff3f5whitesmoke
#0a0e10black
Muted foreground
#414649darkslategray
#b6bbbesilver
Accent
#d3dbdfgainsboro
#1d2225black
Accent foreground
#36434adarkslategray
#b2bdc2silver
Destructive
#b72e01firebrick
#f93f01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e3e6e8gainsboro
#191d1fblack
Input
#e3e6e8gainsboro
#191d1fblack
Ring
#0b2432black
#0b2432black

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.49:1AAA
Secondary button7.24:1AAA
Muted text8.57:1AAA
Accent7.24:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button8.49:1AAA
Secondary button8.34:1AAA
Muted text10.02:1AAA
Accent8.34:1AAA
Destructive3.66:1AA Large

CSS variables

Paste this into your globals.css to use Minimal Midnight Dreams in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.016 224.683);
  --muted: oklch(0.962 0.005 230.735);
  --muted-foreground: oklch(0.391 0.009 230.975);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.016 224.683);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.133 0.016 224.683);
  --border: oklch(0.924 0.004 230.723);
  --input: oklch(0.924 0.004 230.723);
  --primary: oklch(0.25 0.041 235.223);
  --primary-foreground: oklch(0.795 0.076 232.512);
  --secondary: oklch(0.885 0.01 230.823);
  --secondary-foreground: oklch(0.373 0.021 231.578);
  --accent: oklch(0.885 0.01 230.823);
  --accent-foreground: oklch(0.373 0.021 231.578);
  --destructive: oklch(0.514 0.179 35.216);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.041 235.223);
  --chart-1: oklch(0.25 0.041 235.223);
  --chart-2: oklch(0.885 0.01 230.823);
  --chart-3: oklch(0.885 0.01 230.823);
  --chart-4: oklch(0.909 0.008 230.786);
  --chart-5: oklch(0.251 0.042 235.549);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.011 224.837);
  --foreground: oklch(0.992 0.001 230.679);
  --muted: oklch(0.159 0.008 231.457);
  --muted-foreground: oklch(0.79 0.007 230.786);
  --popover: oklch(0.116 0.011 224.837);
  --popover-foreground: oklch(0.992 0.001 230.679);
  --card: oklch(0.116 0.011 224.837);
  --card-foreground: oklch(0.992 0.001 230.679);
  --border: oklch(0.227 0.007 231.09);
  --input: oklch(0.227 0.007 231.09);
  --primary: oklch(0.25 0.041 235.223);
  --primary-foreground: oklch(0.795 0.076 232.512);
  --secondary: oklch(0.249 0.009 231.216);
  --secondary-foreground: oklch(0.791 0.014 230.918);
  --accent: oklch(0.249 0.009 231.216);
  --accent-foreground: oklch(0.791 0.014 230.918);
  --destructive: oklch(0.644 0.228 34.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.25 0.041 235.223);
  --chart-1: oklch(0.25 0.041 235.223);
  --chart-2: oklch(0.249 0.009 231.216);
  --chart-3: oklch(0.249 0.009 231.216);
  --chart-4: oklch(0.281 0.011 231.252);
  --chart-5: oklch(0.251 0.042 235.549);
}