Lonely Halite Blue for shadcn/ui

Lonely Halite Blue is a shadcn/ui theme built around a vivid deep blue primary color (#002e47) with muted light blue accents (#e7ecee). The light mode uses a blue-tinted background (#f2f3f4). Dark mode keeps the vivid deep blue primary (#002e47) on a neutral background (#020608).

Color palette

TokenLightDark
Background
#f2f3f4whitesmoke
#020608black
Foreground
#04090cblack
#f9fafbghostwhite
Card
#fbfdfewhite
#020608black
Card foreground
#04090cblack
#f9fafbghostwhite
Popover
#fbfdfewhite
#020608black
Popover foreground
#04090cblack
#f9fafbghostwhite
Primary
#002e47midnightblue
#002e47midnightblue
Primary foreground
#fcfcfcsnow
#edf4f8whitesmoke
Secondary
#fcbf49sandybrown
#22272adarkslategray
Secondary foreground
#010101black
#edf4f8whitesmoke
Muted
#e6eceflavender
#101619black
Muted foreground
#5f686ddimgray
#929ba0darkgray
Accent
#e7eceelavender
#22272adarkslategray
Accent foreground
#434b4fdarkslategray
#edf4f8whitesmoke
Destructive
#d62828crimson
#d62828crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e9eblavender
#1f2529darkslategray
Input
#e5e9eblavender
#1f2529darkslategray
Ring
#002e47midnightblue
#002e47midnightblue

Contrast

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

Light mode
Text on background18.07:1AAA
Text on card19.59:1AAA
Primary button13.74:1AAA
Secondary button12.61:1AAA
Muted text4.77:1AA
Accent7.46:1AAA
Destructive5.00:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button12.68:1AAA
Secondary button13.51:1AAA
Muted text6.45:1AA
Accent13.51:1AAA
Destructive5.00:1AA

CSS variables

Paste this into your globals.css to use Lonely Halite Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.965 0.002 228.775);
  --foreground: oklch(0.133 0.013 225.315);
  --muted: oklch(0.939 0.008 230.78);
  --muted-foreground: oklch(0.512 0.014 231.054);
  --popover: oklch(0.993 0.002 230.686);
  --popover-foreground: oklch(0.133 0.013 225.315);
  --card: oklch(0.993 0.002 230.686);
  --card-foreground: oklch(0.133 0.013 225.315);
  --border: oklch(0.932 0.005 230.739);
  --input: oklch(0.932 0.005 230.739);
  --primary: oklch(0.288 0.065 239.149);
  --primary-foreground: oklch(0.991 0 172.405);
  --secondary: oklch(0.84 0.147 80.45);
  --secondary-foreground: oklch(0.066 0 230.171);
  --accent: oklch(0.939 0.006 230.74);
  --accent-foreground: oklch(0.407 0.013 231.142);
  --destructive: oklch(0.568 0.208 27.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.065 239.149);
  --chart-1: oklch(0.288 0.065 239.149);
  --chart-2: oklch(0.939 0.006 230.74);
  --chart-3: oklch(0.939 0.006 230.74);
  --chart-4: oklch(0.962 0.003 230.708);
  --chart-5: oklch(0.289 0.067 239.364);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.012 224.329);
  --foreground: oklch(0.985 0.002 230.689);
  --muted: oklch(0.195 0.012 231.67);
  --muted-foreground: oklch(0.684 0.013 230.928);
  --popover: oklch(0.116 0.012 224.329);
  --popover-foreground: oklch(0.985 0.002 230.689);
  --card: oklch(0.116 0.012 224.329);
  --card-foreground: oklch(0.985 0.002 230.689);
  --border: oklch(0.26 0.011 231.336);
  --input: oklch(0.26 0.011 231.336);
  --primary: oklch(0.288 0.065 239.149);
  --primary-foreground: oklch(0.964 0.009 230.79);
  --secondary: oklch(0.271 0.009 231.135);
  --secondary-foreground: oklch(0.963 0.009 232.368);
  --accent: oklch(0.271 0.009 231.135);
  --accent-foreground: oklch(0.963 0.009 232.368);
  --destructive: oklch(0.568 0.208 27.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.065 239.149);
  --chart-1: oklch(0.288 0.065 239.149);
  --chart-2: oklch(0.271 0.009 231.135);
  --chart-3: oklch(0.271 0.009 231.135);
  --chart-4: oklch(0.302 0.01 231.16);
  --chart-5: oklch(0.289 0.067 239.364);
}