Underwater Moonlight Monkey for shadcn/ui

Underwater Moonlight Monkey is a shadcn/ui theme built around a blue primary color (#4987a7) with neutral gray accents (#d0d2d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4987a7) on a blue-tinted background (#04090b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04090bblack
Foreground
#000000black
#fcfdfdwhite
Card
#fcfcfcsnow
#050c0fblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#04090bblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#4987a7steelblue
#4987a7steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d0d2d2lightgrey
#2d2e2edarkslategray
Secondary foreground
#36393adarkslategray
#c6c7c7silver
Muted
#dbe6ebgainsboro
#141f24black
Muted foreground
#474848darkslategray
#b7b8b8silver
Accent
#d0d2d2lightgrey
#2d2e2edarkslategray
Accent foreground
#36393adarkslategray
#c6c7c7silver
Destructive
#d90d02red
#fd2217red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e7e9e9lavender
#181a1bblack
Input
#e7e9e9lavender
#181a1bblack
Ring
#4987a7steelblue
#4987a7steelblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button3.94:1AA Large
Secondary button7.64:1AAA
Muted text7.20:1AAA
Accent7.64:1AAA
Destructive5.23:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.70:1AAA
Primary button3.94:1AA Large
Secondary button8.02:1AAA
Muted text8.45:1AAA
Accent8.02:1AAA
Destructive3.88:1AA Large

CSS variables

Paste this into your globals.css to use Underwater Moonlight Monkey in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0.014 228.959);
  --muted-foreground: oklch(0.4 0.001 228.799);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.931 0.002 228.783);
  --input: oklch(0.931 0.002 228.783);
  --primary: oklch(0.596 0.08 232.004);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.861 0.002 228.787);
  --secondary-foreground: oklch(0.341 0.004 228.892);
  --accent: oklch(0.861 0.002 228.787);
  --accent-foreground: oklch(0.341 0.004 228.892);
  --destructive: oklch(0.559 0.225 29.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.08 232.004);
  --chart-1: oklch(0.596 0.08 232.004);
  --chart-2: oklch(0.861 0.002 228.787);
  --chart-3: oklch(0.861 0.002 228.787);
  --chart-4: oklch(0.885 0.002 228.78);
  --chart-5: oklch(0.599 0.085 232.377);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.012 223.856);
  --foreground: oklch(0.993 0.002 228.772);
  --muted: oklch(0.231 0.019 230.264);
  --muted-foreground: oklch(0.781 0.001 228.772);
  --popover: oklch(0.134 0.012 223.856);
  --popover-foreground: oklch(0.993 0.002 228.772);
  --card: oklch(0.148 0.014 227.314);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.216 0.004 228.983);
  --input: oklch(0.216 0.004 228.983);
  --primary: oklch(0.596 0.08 232.004);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.301 0.001 228.795);
  --secondary-foreground: oklch(0.829 0.001 228.766);
  --accent: oklch(0.301 0.001 228.795);
  --accent-foreground: oklch(0.829 0.001 228.766);
  --destructive: oklch(0.634 0.246 29.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.08 232.004);
  --chart-1: oklch(0.596 0.08 232.004);
  --chart-2: oklch(0.301 0.001 228.795);
  --chart-3: oklch(0.301 0.001 228.795);
  --chart-4: oklch(0.331 0.001 228.797);
  --chart-5: oklch(0.599 0.085 232.377);
}