Blue nuit Theme for shadcn/ui

Blue nuit Theme is a shadcn/ui theme built around a blue primary color (#2f428e) with green accents (#428e2f). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the blue primary (#2f428e) on a neutral background (#030408).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#030408black
Foreground
#03050cblack
#f8f9fcghostwhite
Card
#f7f8fdghostwhite
#04050bblack
Card foreground
#020308black
#fcfcfdwhite
Popover
#f7f8fdghostwhite
#04050bblack
Popover foreground
#020308black
#fcfcfdwhite
Primary
#2f428edarkslateblue
#2f428edarkslateblue
Primary foreground
#f4f5fbwhitesmoke
#f4f5fbwhitesmoke
Secondary
#8e2f42brown
#8e2f42brown
Secondary foreground
#fbf4f5lavenderblush
#fbf4f5lavenderblush
Muted
#f7eef0whitesmoke
#11080ablack
Muted foreground
#6d5f62dimgray
#a09295rosybrown
Accent
#428e2fforestgreen
#428e2fforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b12d0bfirebrick
#f25f3atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#efeff0whitesmoke
#202022black
Input
#efeff0whitesmoke
#202022black
Ring
#2f428edarkslateblue
#2f428edarkslateblue

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.41:1AAA
Primary button8.42:1AAA
Secondary button7.36:1AAA
Muted text5.31:1AA
Accent4.10:1AA Large
Destructive6.45:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.81:1AAA
Primary button8.42:1AAA
Secondary button7.36:1AAA
Muted text6.61:1AA
Accent4.10:1AA Large
Destructive6.49:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 274.991);
  --foreground: oklch(0.116 0.021 267.34);
  --muted: oklch(0.956 0.01 3.463);
  --muted-foreground: oklch(0.5 0.019 4.19);
  --popover: oklch(0.979 0.007 274.946);
  --popover-foreground: oklch(0.101 0.018 267.159);
  --card: oklch(0.979 0.007 274.946);
  --card-foreground: oklch(0.101 0.018 267.159);
  --border: oklch(0.953 0.001 275.017);
  --input: oklch(0.953 0.001 275.017);
  --primary: oklch(0.408 0.127 269.469);
  --primary-foreground: oklch(0.971 0.008 274.929);
  --secondary: oklch(0.45 0.128 11.936);
  --secondary-foreground: oklch(0.972 0.008 3.418);
  --accent: oklch(0.576 0.15 139.874);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.503 0.174 33.887);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.127 269.469);
  --chart-1: oklch(0.408 0.127 269.469);
  --chart-2: oklch(0.45 0.128 11.936);
  --chart-3: oklch(0.576 0.15 139.874);
  --chart-4: oklch(0.475 0.136 12.043);
  --chart-5: oklch(0.405 0.134 269.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 269.332);
  --foreground: oklch(0.982 0.004 274.985);
  --muted: oklch(0.15 0.017 5.539);
  --muted-foreground: oklch(0.673 0.017 3.877);
  --popover: oklch(0.12 0.016 269.407);
  --popover-foreground: oklch(0.991 0.002 275.01);
  --card: oklch(0.12 0.016 269.407);
  --card-foreground: oklch(0.991 0.002 275.01);
  --border: oklch(0.245 0.004 274.827);
  --input: oklch(0.245 0.004 274.827);
  --primary: oklch(0.408 0.127 269.469);
  --primary-foreground: oklch(0.971 0.008 274.929);
  --secondary: oklch(0.45 0.128 11.936);
  --secondary-foreground: oklch(0.972 0.008 3.418);
  --accent: oklch(0.576 0.15 139.874);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.671 0.189 35.126);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.408 0.127 269.469);
  --chart-1: oklch(0.408 0.127 269.469);
  --chart-2: oklch(0.45 0.128 11.936);
  --chart-3: oklch(0.576 0.15 139.874);
  --chart-4: oklch(0.475 0.136 12.043);
  --chart-5: oklch(0.405 0.134 269.038);
}