Yielding Button Blue for shadcn/ui

Yielding Button Blue is a shadcn/ui theme built around a vivid cyan primary color (#05a2eb) with vivid blue accents (#052feb). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the vivid cyan primary (#05a2eb) on a cyan-tinted background (#060c0f).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#060c0fblack
Foreground
#000000black
#ffffffwhite
Card
#f7fbfdghostwhite
#060c0fblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fbfdghostwhite
#060c0fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#05a2ebdeepskyblue
#05a2ebdeepskyblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#05ebc1darkturquoise
#05ebc1darkturquoise
Secondary foreground
#01231dblack
#01231dblack
Muted
#f1f4f3whitesmoke
#0b0e0eblack
Muted foreground
#4b635edimgray
#9cb4b0darkgray
Accent
#052febblue
#052febblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9a2a04saddlebrown
#f94a10orangered
Destructive foreground
#feddd2blanchedalmond
#ffffffwhite
Border
#e8eceelavender
#181e20black
Input
#e8eceelavender
#181e20black
Ring
#05a2ebdeepskyblue
#05a2ebdeepskyblue

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button2.84:1Fail
Secondary button10.83:1AAA
Muted text5.82:1AA
Accent8.04:1AAA
Destructive6.10:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button2.84:1Fail
Secondary button10.83:1AAA
Muted text8.82:1AAA
Accent8.04:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 226.919);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.964 0.003 184.235);
  --muted-foreground: oklch(0.478 0.03 182.529);
  --popover: oklch(0.986 0.005 226.919);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.005 226.919);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.94 0.005 226.924);
  --input: oklch(0.94 0.005 226.924);
  --primary: oklch(0.678 0.153 239.322);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.838 0.16 173.369);
  --secondary-foreground: oklch(0.23 0.041 177.882);
  --accent: oklch(0.457 0.272 264.429);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.457 0.154 35.871);
  --destructive-foreground: oklch(0.922 0.039 39.305);
  --ring: oklch(0.678 0.153 239.322);
  --chart-1: oklch(0.678 0.153 239.322);
  --chart-2: oklch(0.838 0.16 173.369);
  --chart-3: oklch(0.457 0.272 264.429);
  --chart-4: oklch(0.878 0.168 173.309);
  --chart-5: oklch(0.683 0.156 239.825);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.148 0.013 225.634);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.004 183.588);
  --muted-foreground: oklch(0.752 0.027 183.307);
  --popover: oklch(0.148 0.013 225.634);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.013 225.634);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.229 0.01 227.483);
  --input: oklch(0.229 0.01 227.483);
  --primary: oklch(0.678 0.153 239.322);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.838 0.16 173.369);
  --secondary-foreground: oklch(0.23 0.041 177.882);
  --accent: oklch(0.457 0.272 264.429);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.219 35.892);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.678 0.153 239.322);
  --chart-1: oklch(0.678 0.153 239.322);
  --chart-2: oklch(0.838 0.16 173.369);
  --chart-3: oklch(0.457 0.272 264.429);
  --chart-4: oklch(0.878 0.168 173.309);
  --chart-5: oklch(0.683 0.156 239.825);
}