Cyan Cobalt Blue Squid for shadcn/ui

Cyan Cobalt Blue Squid is a shadcn/ui theme built around a blue primary color (#2e5a99) with indigo accents (#372e99). The light mode uses a neutral background (#f8fafb). Dark mode keeps the blue primary (#2e5a99) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#f8fafbghostwhite
#05090fblack
Foreground
#02070dblack
#ffffffwhite
Card
#f5f7fawhitesmoke
#070c13black
Card foreground
#010409black
#ffffffwhite
Popover
#f8fafbghostwhite
#05090fblack
Popover foreground
#02070dblack
#ffffffwhite
Primary
#2e5a99darkslateblue
#2e5a99darkslateblue
Primary foreground
#fbfcfewhite
#fbfcfewhite
Secondary
#2e9099steelblue
#2e9099steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfebeclavender
#131f20black
Muted foreground
#425557darkslategray
#a8bbbdsilver
Accent
#372e99darkslateblue
#372e99darkslateblue
Accent foreground
#fbfbfeghostwhite
#fbfbfeghostwhite
Destructive
#9a3b0esaddlebrown
#ee7a44coral
Destructive foreground
#ffffffwhite
#000000black
Border
#dfe0e2gainsboro
#18191bblack
Input
#dfe0e2gainsboro
#18191bblack
Ring
#2e5a99darkslateblue
#2e5a99darkslateblue

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.12:1AAA
Primary button6.69:1AA
Secondary button3.76:1AA Large
Muted text6.45:1AA
Accent10.12:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.91:1AAA
Text on card19.63:1AAA
Primary button6.69:1AA
Secondary button3.76:1AA Large
Muted text8.44:1AAA
Accent10.12:1AAA
Destructive7.48:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 256.664);
  --foreground: oklch(0.123 0.02 246.777);
  --muted: oklch(0.931 0.013 203.456);
  --muted-foreground: oklch(0.435 0.024 203.185);
  --popover: oklch(0.984 0.003 256.664);
  --popover-foreground: oklch(0.123 0.02 246.777);
  --card: oklch(0.975 0.004 256.67);
  --card-foreground: oklch(0.108 0.017 245.836);
  --border: oklch(0.906 0.003 256.667);
  --input: oklch(0.906 0.003 256.667);
  --primary: oklch(0.47 0.113 257.245);
  --primary-foreground: oklch(0.991 0.002 256.662);
  --secondary: oklch(0.602 0.089 203.857);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.167 278.797);
  --accent-foreground: oklch(0.989 0.004 290.177);
  --destructive: oklch(0.478 0.138 41.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.113 257.245);
  --chart-1: oklch(0.47 0.113 257.245);
  --chart-2: oklch(0.602 0.089 203.857);
  --chart-3: oklch(0.385 0.167 278.797);
  --chart-4: oklch(0.636 0.094 203.877);
  --chart-5: oklch(0.47 0.119 257.339);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 252.586);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.017 203.128);
  --muted-foreground: oklch(0.779 0.022 203.348);
  --popover: oklch(0.14 0.015 252.586);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.151 0.017 255.265);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.214 0.004 256.72);
  --input: oklch(0.214 0.004 256.72);
  --primary: oklch(0.47 0.113 257.245);
  --primary-foreground: oklch(0.991 0.002 256.662);
  --secondary: oklch(0.602 0.089 203.857);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.167 278.797);
  --accent-foreground: oklch(0.989 0.004 290.177);
  --destructive: oklch(0.702 0.158 44.023);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.47 0.113 257.245);
  --chart-1: oklch(0.47 0.113 257.245);
  --chart-2: oklch(0.602 0.089 203.857);
  --chart-3: oklch(0.385 0.167 278.797);
  --chart-4: oklch(0.636 0.094 203.877);
  --chart-5: oklch(0.47 0.119 257.339);
}