Blue for shadcn/ui

Blue is a shadcn/ui theme built around a vivid cyan primary color (#5ddeef) with muted light cyan accents (#bed7da). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the vivid cyan primary (#5ddeef) on a cyan-tinted background (#060d0e).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#060d0eblack
Foreground
#000000black
#f5fafamintcream
Card
#f7fcfdghostwhite
#060d0eblack
Card foreground
#000000black
#f5fafamintcream
Popover
#f7fcfdghostwhite
#060d0eblack
Popover foreground
#000000black
#f5fafamintcream
Primary
#5ddeefturquoise
#5ddeefturquoise
Primary foreground
#021517black
#021517black
Secondary
#d7e3e4gainsboro
#283233darkslategray
Secondary foreground
#374f53darkslategray
#c0cccesilver
Muted
#d1e4e6gainsboro
#192c2edarkslategray
Muted foreground
#4a5759darkslategray
#a6b3b5darkgray
Accent
#bed7dapowderblue
#374f53darkslategray
Accent foreground
#253e41darkslategray
#d7e3e4gainsboro
Destructive
#ad1105firebrick
#f83325orangered
Destructive foreground
#fee8e6mistyrose
#ffffffwhite
Border
#eaeff0whitesmoke
#181f20black
Input
#eaeff0whitesmoke
#181f20black
Ring
#5ddeefturquoise
#5ddeefturquoise

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button11.70:1AAA
Secondary button6.65:1AA
Muted text5.67:1AA
Accent7.52:1AAA
Destructive6.25:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button11.70:1AAA
Secondary button7.98:1AAA
Muted text6.75:1AA
Accent6.61:1AA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 206.404);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.02 206.323);
  --muted-foreground: oklch(0.447 0.016 206.276);
  --popover: oklch(0.988 0.006 206.404);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 206.404);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.949 0.005 206.408);
  --input: oklch(0.949 0.005 206.408);
  --primary: oklch(0.835 0.115 207.243);
  --primary-foreground: oklch(0.179 0.027 205.894);
  --secondary: oklch(0.907 0.013 206.362);
  --secondary-foreground: oklch(0.411 0.03 206.287);
  --accent: oklch(0.861 0.026 206.294);
  --accent-foreground: oklch(0.344 0.031 206.371);
  --destructive: oklch(0.475 0.187 29.837);
  --destructive-foreground: oklch(0.948 0.025 22.521);
  --ring: oklch(0.835 0.115 207.243);
  --chart-1: oklch(0.835 0.115 207.243);
  --chart-2: oklch(0.907 0.013 206.362);
  --chart-3: oklch(0.861 0.026 206.294);
  --chart-4: oklch(0.929 0.01 206.38);
  --chart-5: oklch(0.84 0.118 207.338);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.013 205.541);
  --foreground: oklch(0.98 0.005 206.408);
  --muted: oklch(0.278 0.025 206.38);
  --muted-foreground: oklch(0.757 0.015 206.336);
  --popover: oklch(0.154 0.013 205.541);
  --popover-foreground: oklch(0.98 0.005 206.408);
  --card: oklch(0.154 0.013 205.541);
  --card-foreground: oklch(0.98 0.005 206.408);
  --border: oklch(0.234 0.011 206.259);
  --input: oklch(0.234 0.011 206.259);
  --primary: oklch(0.835 0.115 207.243);
  --primary-foreground: oklch(0.179 0.027 205.894);
  --secondary: oklch(0.309 0.013 206.263);
  --secondary-foreground: oklch(0.837 0.013 206.353);
  --accent: oklch(0.411 0.03 206.287);
  --accent-foreground: oklch(0.907 0.013 206.362);
  --destructive: oklch(0.636 0.232 29.402);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.115 207.243);
  --chart-1: oklch(0.835 0.115 207.243);
  --chart-2: oklch(0.309 0.013 206.263);
  --chart-3: oklch(0.411 0.03 206.287);
  --chart-4: oklch(0.341 0.015 206.261);
  --chart-5: oklch(0.84 0.118 207.338);
}