P. \ Neptune for shadcn/ui

P. \ Neptune is a shadcn/ui theme built around a vivid blue primary color (#3d5aff) with deep blue accents (#142167). The light mode uses a blue-tinted background (#070d27). Dark mode keeps the vivid blue primary (#3d5aff) on a blue-tinted background (#070d27).

Color palette

TokenLightDark
Background
#070d27black
#070d27black
Foreground
#fdc1bflightpink
#fdc1bflightpink
Card
#060a1eblack
#060a1eblack
Card foreground
#fed9d7mistyrose
#fed9d7mistyrose
Popover
#05081ablack
#05081ablack
Popover foreground
#fff1f0seashell
#fff1f0seashell
Primary
#3d5affroyalblue
#3d5affroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acb2d2lightsteelblue
#acb2d2lightsteelblue
Secondary foreground
#1b1e32darkslategray
#1b1e32darkslategray
Muted
#22232bdarkslategray
#22232bdarkslategray
Muted foreground
#9b9fb0darkgray
#9b9fb0darkgray
Accent
#142167midnightblue
#142167midnightblue
Accent foreground
#bac4f2lightsteelblue
#bac4f2lightsteelblue
Destructive
#f11704red
#f11704red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#0f1638midnightblue
#0f1638midnightblue
Input
#121b44midnightblue
#121b44midnightblue
Ring
#3d5affroyalblue
#3d5affroyalblue

Contrast

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

Light mode
Text on background12.39:1AAA
Text on card15.08:1AAA
Primary button5.10:1AA
Secondary button7.86:1AAA
Muted text5.93:1AA
Accent8.47:1AAA
Destructive4.30:1AA Large
Dark mode
Text on background12.39:1AAA
Text on card15.08:1AAA
Primary button5.10:1AA
Secondary button7.86:1AAA
Muted text5.93:1AA
Accent8.47:1AAA
Destructive4.30:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Neptune in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.17 0.054 270.74);
  --foreground: oklch(0.864 0.07 20.871);
  --muted: oklch(0.259 0.015 276.418);
  --muted-foreground: oklch(0.704 0.026 276.717);
  --popover: oklch(0.144 0.038 270.192);
  --popover-foreground: oklch(0.968 0.015 19.826);
  --card: oklch(0.153 0.044 270.549);
  --card-foreground: oklch(0.915 0.042 20.281);
  --border: oklch(0.216 0.067 271.198);
  --input: oklch(0.241 0.079 270.772);
  --primary: oklch(0.556 0.244 268.778);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.769 0.047 277.36);
  --secondary-foreground: oklch(0.243 0.038 275.583);
  --accent: oklch(0.29 0.122 268.535);
  --accent-foreground: oklch(0.828 0.066 276.027);
  --destructive: oklch(0.607 0.242 30.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.556 0.244 268.778);
  --chart-1: oklch(0.556 0.244 268.778);
  --chart-2: oklch(0.769 0.047 277.36);
  --chart-3: oklch(0.29 0.122 268.535);
  --chart-4: oklch(0.798 0.041 277.524);
  --chart-5: oklch(0.554 0.251 268.438);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.17 0.054 270.74);
  --foreground: oklch(0.864 0.07 20.871);
  --muted: oklch(0.259 0.015 276.418);
  --muted-foreground: oklch(0.704 0.026 276.717);
  --popover: oklch(0.144 0.038 270.192);
  --popover-foreground: oklch(0.968 0.015 19.826);
  --card: oklch(0.153 0.044 270.549);
  --card-foreground: oklch(0.915 0.042 20.281);
  --border: oklch(0.216 0.067 271.198);
  --input: oklch(0.241 0.079 270.772);
  --primary: oklch(0.556 0.244 268.778);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.769 0.047 277.36);
  --secondary-foreground: oklch(0.243 0.038 275.583);
  --accent: oklch(0.29 0.122 268.535);
  --accent-foreground: oklch(0.828 0.066 276.027);
  --destructive: oklch(0.607 0.242 30.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.556 0.244 268.778);
  --chart-1: oklch(0.556 0.244 268.778);
  --chart-2: oklch(0.769 0.047 277.36);
  --chart-3: oklch(0.29 0.122 268.535);
  --chart-4: oklch(0.798 0.041 277.524);
  --chart-5: oklch(0.554 0.251 268.438);
}