Blue-Dark for shadcn/ui

Blue-Dark is a shadcn/ui theme built around a deep cyan primary color (#09232a) with deep blue accents (#09132a). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep cyan primary (#09232a) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020708black
Foreground
#050d0fblack
#fcfdfdwhite
Card
#fcfdfdwhite
#020708black
Card foreground
#050d0fblack
#fcfdfdwhite
Popover
#fcfdfdwhite
#020708black
Popover foreground
#050d0fblack
#fcfdfdwhite
Primary
#09232ablack
#09232ablack
Primary foreground
#2fadd0lightseagreen
#2fadd0lightseagreen
Secondary
#092a20black
#092a20black
Secondary foreground
#2fd0a2lightseagreen
#2fd0a2lightseagreen
Muted
#eaf1efwhitesmoke
#0e1513black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#09132ablack
#09132ablack
Accent foreground
#829ee3cornflowerblue
#829ee3cornflowerblue
Destructive
#af3404firebrick
#fa4a05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#09232ablack
#09232ablack

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button6.25:1AA
Secondary button7.85:1AAA
Muted text4.99:1AA
Accent7.00:1AAA
Destructive6.33:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.25:1AA
Secondary button7.85:1AAA
Muted text6.47:1AA
Accent7.00:1AAA
Destructive3.46:1AA Large

CSS variables

Paste this into your globals.css to use Blue-Dark in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 216.019);
  --foreground: oklch(0.152 0.015 215.038);
  --muted: oklch(0.951 0.008 177.48);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.993 0.002 216.019);
  --popover-foreground: oklch(0.152 0.015 215.038);
  --card: oklch(0.993 0.002 216.019);
  --card-foreground: oklch(0.152 0.015 215.038);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.238 0.033 218.931);
  --primary-foreground: oklch(0.696 0.116 221.183);
  --secondary: oklch(0.257 0.041 171.01);
  --secondary-foreground: oklch(0.766 0.144 168.5);
  --accent: oklch(0.191 0.049 265.751);
  --accent-foreground: oklch(0.705 0.106 267.178);
  --destructive: oklch(0.506 0.166 37.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.033 218.931);
  --chart-1: oklch(0.238 0.033 218.931);
  --chart-2: oklch(0.257 0.041 171.01);
  --chart-3: oklch(0.191 0.049 265.751);
  --chart-4: oklch(0.301 0.051 170.434);
  --chart-5: oklch(0.24 0.035 219.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 212.036);
  --foreground: oklch(0.993 0.001 216.016);
  --muted: oklch(0.189 0.011 175.901);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.12 0.011 212.036);
  --popover-foreground: oklch(0.993 0.001 216.016);
  --card: oklch(0.12 0.011 212.036);
  --card-foreground: oklch(0.993 0.001 216.016);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.238 0.033 218.931);
  --primary-foreground: oklch(0.696 0.116 221.183);
  --secondary: oklch(0.257 0.041 171.01);
  --secondary-foreground: oklch(0.766 0.144 168.5);
  --accent: oklch(0.191 0.049 265.751);
  --accent-foreground: oklch(0.705 0.106 267.178);
  --destructive: oklch(0.657 0.22 36.523);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.033 218.931);
  --chart-1: oklch(0.238 0.033 218.931);
  --chart-2: oklch(0.257 0.041 171.01);
  --chart-3: oklch(0.191 0.049 265.751);
  --chart-4: oklch(0.301 0.051 170.434);
  --chart-5: oklch(0.24 0.035 219.149);
}