Surprised Ocean for shadcn/ui

Surprised Ocean is a shadcn/ui theme built around a vivid blue primary color (#0b538e) with muted light blue accents (#e4e8ec). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid blue primary (#0b538e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#020508black
#f6f7f9whitesmoke
Card
#fcfdfdwhite
#000000black
Card foreground
#020508black
#f6f7f9whitesmoke
Popover
#fcfdfdwhite
#000000black
Popover foreground
#020508black
#f6f7f9whitesmoke
Primary
#0b538eteal
#0b538eteal
Primary foreground
#d0e8fblavender
#d0e8fblavender
Secondary
#e4e8eclavender
#232424black
Secondary foreground
#42505cdarkslategray
#bbbdbesilver
Muted
#e8ebedlavender
#121517black
Muted foreground
#575f66dimgray
#99a1a8darkgray
Accent
#e4e8eclavender
#232424black
Accent foreground
#42505cdarkslategray
#bbbdbesilver
Destructive
#760a0amaroon
#d91212crimson
Destructive foreground
#f9b8b8lightpink
#ffffffwhite
Border
#e2e6e9gainsboro
#22272bdarkslategray
Input
#e2e6e9gainsboro
#22272bdarkslategray
Ring
#0b538eteal
#0b538eteal

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.28:1AA
Secondary button6.75:1AA
Muted text5.41:1AA
Accent6.75:1AA
Destructive6.92:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button6.28:1AA
Secondary button8.26:1AAA
Muted text7.01:1AAA
Accent8.26:1AAA
Destructive5.19:1AA

CSS variables

Paste this into your globals.css to use Surprised Ocean in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 242.215);
  --foreground: oklch(0.114 0.011 235.304);
  --muted: oklch(0.938 0.005 242.257);
  --muted-foreground: oklch(0.481 0.015 242.611);
  --popover: oklch(0.992 0.002 242.215);
  --popover-foreground: oklch(0.114 0.011 235.304);
  --card: oklch(0.992 0.002 242.215);
  --card-foreground: oklch(0.114 0.011 235.304);
  --border: oklch(0.923 0.005 242.268);
  --input: oklch(0.923 0.005 242.268);
  --primary: oklch(0.435 0.117 250.016);
  --primary-foreground: oklch(0.918 0.037 242.737);
  --secondary: oklch(0.93 0.007 242.288);
  --secondary-foreground: oklch(0.425 0.027 243.089);
  --accent: oklch(0.93 0.007 242.288);
  --accent-foreground: oklch(0.425 0.027 243.089);
  --destructive: oklch(0.361 0.14 28.033);
  --destructive-foreground: oklch(0.843 0.076 18.775);
  --ring: oklch(0.435 0.117 250.016);
  --chart-1: oklch(0.435 0.117 250.016);
  --chart-2: oklch(0.93 0.007 242.288);
  --chart-3: oklch(0.93 0.007 242.288);
  --chart-4: oklch(0.954 0.004 242.255);
  --chart-5: oklch(0.437 0.12 250.434);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.002 242.221);
  --muted: oklch(0.192 0.007 242.656);
  --muted-foreground: oklch(0.706 0.014 242.451);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.002 242.221);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.977 0.002 242.221);
  --border: oklch(0.268 0.011 242.723);
  --input: oklch(0.268 0.011 242.723);
  --primary: oklch(0.435 0.117 250.016);
  --primary-foreground: oklch(0.918 0.037 242.737);
  --secondary: oklch(0.259 0.002 242.279);
  --secondary-foreground: oklch(0.797 0.002 242.233);
  --accent: oklch(0.259 0.002 242.279);
  --accent-foreground: oklch(0.797 0.002 242.233);
  --destructive: oklch(0.561 0.223 28.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.435 0.117 250.016);
  --chart-1: oklch(0.435 0.117 250.016);
  --chart-2: oklch(0.259 0.002 242.279);
  --chart-3: oklch(0.259 0.002 242.279);
  --chart-4: oklch(0.29 0.002 242.283);
  --chart-5: oklch(0.437 0.12 250.434);
}