Marginal Wickford Bay for shadcn/ui

Marginal Wickford Bay is a shadcn/ui theme built around a blue primary color (#4b698b) with muted light blue accents (#dadee2). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4b698b) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04070bblack
Foreground
#030a12black
#ffffffwhite
Card
#ffffffwhite
#04070bblack
Card foreground
#030a12black
#ffffffwhite
Popover
#ffffffwhite
#04070bblack
Popover foreground
#030a12black
#ffffffwhite
Primary
#4b698bslategray
#4b698bslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dadee2gainsboro
#23262adarkslategray
Secondary foreground
#3c444edarkslategray
#babfc5silver
Muted
#edf0f2whitesmoke
#0d0f12black
Muted foreground
#48515bdarkslategray
#a4adb7darkgray
Accent
#dadee2gainsboro
#23262adarkslategray
Accent foreground
#3c444edarkslategray
#babfc5silver
Destructive
#d41e11firebrick
#f04e42tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f1f2f4whitesmoke
#1d2125black
Input
#f1f2f4whitesmoke
#1d2125black
Ring
#4b698bslategray
#4b698bslategray

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button5.68:1AA
Secondary button7.26:1AAA
Muted text7.03:1AAA
Accent7.26:1AAA
Destructive5.24:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button5.68:1AA
Secondary button8.21:1AAA
Muted text8.43:1AAA
Accent8.21:1AAA
Destructive3.58:1AA Large

CSS variables

Paste this into your globals.css to use Marginal Wickford Bay in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.139 0.023 245.229);
  --muted: oklch(0.953 0.004 251.485);
  --muted-foreground: oklch(0.431 0.021 251.806);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.139 0.023 245.229);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.139 0.023 245.229);
  --border: oklch(0.961 0.003 251.475);
  --input: oklch(0.961 0.003 251.475);
  --primary: oklch(0.512 0.065 252.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.898 0.008 251.519);
  --secondary-foreground: oklch(0.384 0.02 251.824);
  --accent: oklch(0.898 0.008 251.519);
  --accent-foreground: oklch(0.384 0.02 251.824);
  --destructive: oklch(0.557 0.214 29.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.065 252.362);
  --chart-1: oklch(0.512 0.065 252.362);
  --chart-2: oklch(0.898 0.008 251.519);
  --chart-3: oklch(0.898 0.008 251.519);
  --chart-4: oklch(0.921 0.006 251.502);
  --chart-5: oklch(0.511 0.071 252.472);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.012 244.968);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.006 251.727);
  --muted-foreground: oklch(0.743 0.018 251.64);
  --popover: oklch(0.128 0.012 244.968);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.012 244.968);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.245 0.011 251.77);
  --input: oklch(0.245 0.011 251.77);
  --primary: oklch(0.512 0.065 252.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.008 251.686);
  --secondary-foreground: oklch(0.802 0.01 251.555);
  --accent: oklch(0.267 0.008 251.686);
  --accent-foreground: oklch(0.802 0.01 251.555);
  --destructive: oklch(0.648 0.2 28.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.065 252.362);
  --chart-1: oklch(0.512 0.065 252.362);
  --chart-2: oklch(0.267 0.008 251.686);
  --chart-3: oklch(0.267 0.008 251.686);
  --chart-4: oklch(0.298 0.01 251.696);
  --chart-5: oklch(0.511 0.071 252.472);
}