Midnight Blush Capybara for shadcn/ui

Midnight Blush Capybara is a shadcn/ui theme built around a muted blue primary color (#939dbe) with muted light blue accents (#d7dae5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#939dbe) on a blue-tinted background (#07080e).

Color palette

TokenLightDark
Background
#ffffffwhite
#07080eblack
Foreground
#02040eblack
#ffffffwhite
Card
#ffffffwhite
#07080eblack
Card foreground
#02040eblack
#ffffffwhite
Popover
#ffffffwhite
#07080eblack
Popover foreground
#02040eblack
#ffffffwhite
Primary
#939dbedarkgray
#939dbedarkgray
Primary foreground
#0b0d13black
#0b0d13black
Secondary
#e8e9edlavender
#28282adarkslategray
Secondary foreground
#474c5cdarkslategray
#c0c1c4silver
Muted
#eef0f7whitesmoke
#080a11black
Muted foreground
#4f535fdimgray
#a0a4b0darkgray
Accent
#d7dae5gainsboro
#353841darkslategray
Accent foreground
#363d54darkslategray
#cfd1d8lightgrey
Destructive
#b64707saddlebrown
#f15e09orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#eeeff2whitesmoke
#1d1f26black
Input
#eeeff2whitesmoke
#1d1f26black
Ring
#939dbedarkgray
#939dbedarkgray

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card20.46:1AAA
Primary button7.19:1AAA
Secondary button7.05:1AAA
Muted text6.72:1AA
Accent7.70:1AAA
Destructive5.39:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.19:1AAA
Secondary button8.17:1AAA
Muted text7.93:1AAA
Accent7.72:1AAA
Destructive6.34:1AA

CSS variables

Paste this into your globals.css to use Midnight Blush Capybara in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.112 0.026 261.454);
  --muted: oklch(0.955 0.01 272.548);
  --muted-foreground: oklch(0.442 0.02 272.131);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.112 0.026 261.454);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.112 0.026 261.454);
  --border: oklch(0.951 0.005 272.608);
  --input: oklch(0.951 0.005 272.608);
  --primary: oklch(0.699 0.05 271.781);
  --primary-foreground: oklch(0.161 0.013 271.675);
  --secondary: oklch(0.935 0.006 272.595);
  --secondary-foreground: oklch(0.418 0.028 271.852);
  --accent: oklch(0.889 0.016 272.468);
  --accent-foreground: oklch(0.363 0.041 271.155);
  --destructive: oklch(0.541 0.157 42.931);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.05 271.781);
  --chart-1: oklch(0.699 0.05 271.781);
  --chart-2: oklch(0.935 0.006 272.595);
  --chart-3: oklch(0.889 0.016 272.468);
  --chart-4: oklch(0.959 0.003 272.619);
  --chart-5: oklch(0.695 0.056 271.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.013 269.296);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.147 0.016 270.518);
  --muted-foreground: oklch(0.72 0.018 272.388);
  --popover: oklch(0.136 0.013 269.296);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.013 269.296);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.239 0.014 271.96);
  --input: oklch(0.239 0.014 271.96);
  --primary: oklch(0.699 0.05 271.781);
  --primary-foreground: oklch(0.161 0.013 271.675);
  --secondary: oklch(0.278 0.004 272.523);
  --secondary-foreground: oklch(0.811 0.004 272.606);
  --accent: oklch(0.34 0.016 272.105);
  --accent-foreground: oklch(0.862 0.009 272.543);
  --destructive: oklch(0.665 0.197 42.308);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.699 0.05 271.781);
  --chart-1: oklch(0.699 0.05 271.781);
  --chart-2: oklch(0.278 0.004 272.523);
  --chart-3: oklch(0.34 0.016 272.105);
  --chart-4: oklch(0.308 0.004 272.517);
  --chart-5: oklch(0.695 0.056 271.65);
}