Atlantic Night for shadcn/ui

Atlantic Night is a shadcn/ui theme built around a blue primary color (#5c80b2) with vivid deep blue accents (#00176b). The light mode uses a blue-tinted background (#00071f). Dark mode keeps the blue primary (#5c80b2) on a blue-tinted background (#00071f).

Color palette

TokenLightDark
Background
#00071fblack
#00071fblack
Foreground
#dbdfe1gainsboro
#dbdfe1gainsboro
Card
#000414black
#000414black
Card foreground
#e9ebedlavender
#e9ebedlavender
Popover
#00030fblack
#00030fblack
Popover foreground
#f7f8f8whitesmoke
#f7f8f8whitesmoke
Primary
#5c80b2steelblue
#5c80b2steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#afbcd0lightsteelblue
#afbcd0lightsteelblue
Secondary foreground
#1c2530darkslategray
#1c2530darkslategray
Muted
#22242bdarkslategray
#22242bdarkslategray
Muted foreground
#9ba0b0darkgray
#9ba0b0darkgray
Accent
#00176bmidnightblue
#00176bmidnightblue
Accent foreground
#9eb3fflightskyblue
#9eb3fflightskyblue
Destructive
#d81d13firebrick
#d81d13firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#030e35black
#030e35black
Input
#041144midnightblue
#041144midnightblue
Ring
#5c80b2steelblue
#5c80b2steelblue

Contrast

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

Light mode
Text on background14.93:1AAA
Text on card17.06:1AAA
Primary button4.04:1AA Large
Secondary button8.07:1AAA
Muted text5.96:1AA
Accent7.73:1AAA
Destructive5.12:1AA
Dark mode
Text on background14.93:1AAA
Text on card17.06:1AAA
Primary button4.04:1AA Large
Secondary button8.07:1AAA
Muted text5.96:1AA
Accent7.73:1AAA
Destructive5.12:1AA

CSS variables

Paste this into your globals.css to use Atlantic Night in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.137 0.056 259.95);
  --foreground: oklch(0.901 0.006 223.194);
  --muted: oklch(0.26 0.014 273.195);
  --muted-foreground: oklch(0.706 0.025 273.436);
  --popover: oklch(0.103 0.036 256.754);
  --popover-foreground: oklch(0.977 0.001 223.144);
  --card: oklch(0.115 0.043 257.912);
  --card-foreground: oklch(0.94 0.004 223.167);
  --border: oklch(0.185 0.08 264.75);
  --input: oklch(0.211 0.097 264.973);
  --primary: oklch(0.594 0.088 256.895);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.792 0.031 256.771);
  --secondary-foreground: oklch(0.26 0.025 256.839);
  --accent: oklch(0.268 0.146 263.642);
  --accent-foreground: oklch(0.78 0.111 271.783);
  --destructive: oklch(0.563 0.218 29.343);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.088 256.895);
  --chart-1: oklch(0.594 0.088 256.895);
  --chart-2: oklch(0.792 0.031 256.771);
  --chart-3: oklch(0.268 0.146 263.642);
  --chart-4: oklch(0.818 0.027 256.758);
  --chart-5: oklch(0.592 0.095 256.917);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.056 259.95);
  --foreground: oklch(0.901 0.006 223.194);
  --muted: oklch(0.26 0.014 273.195);
  --muted-foreground: oklch(0.706 0.025 273.436);
  --popover: oklch(0.103 0.036 256.754);
  --popover-foreground: oklch(0.977 0.001 223.144);
  --card: oklch(0.115 0.043 257.912);
  --card-foreground: oklch(0.94 0.004 223.167);
  --border: oklch(0.185 0.08 264.75);
  --input: oklch(0.211 0.097 264.973);
  --primary: oklch(0.594 0.088 256.895);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.792 0.031 256.771);
  --secondary-foreground: oklch(0.26 0.025 256.839);
  --accent: oklch(0.268 0.146 263.642);
  --accent-foreground: oklch(0.78 0.111 271.783);
  --destructive: oklch(0.563 0.218 29.343);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.088 256.895);
  --chart-1: oklch(0.594 0.088 256.895);
  --chart-2: oklch(0.792 0.031 256.771);
  --chart-3: oklch(0.268 0.146 263.642);
  --chart-4: oklch(0.818 0.027 256.758);
  --chart-5: oklch(0.592 0.095 256.917);
}