Secondary for shadcn/ui

Secondary is a shadcn/ui theme built around a vivid blue primary color (#0a60eb) with muted light blue accents (#b9c4d4). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid blue primary (#0a60eb) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#010204black
Foreground
#000000black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#010204black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#010204black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#0a60ebdodgerblue
#0a60ebdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6dae1gainsboro
#17191cblack
Secondary foreground
#38404ddarkslategray
#abb1badarkgray
Muted
#f0f2f5whitesmoke
#0a0c0fblack
Muted foreground
#545c69dimgray
#969eabdarkgray
Accent
#b9c4d4lightsteelblue
#242a32darkslategray
Accent foreground
#232b39darkslategray
#bbc2cesilver
Destructive
#7a120bmaroon
#ed392ccrimson
Destructive foreground
#f9c1bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a60ebdodgerblue
#0a60ebdodgerblue

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button5.39:1AA
Secondary button7.44:1AAA
Muted text5.99:1AA
Accent8.06:1AAA
Destructive6.97:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button5.39:1AA
Secondary button8.16:1AAA
Muted text7.24:1AAA
Accent8.08:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 259.94);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.005 259.939);
  --muted-foreground: oklch(0.472 0.023 259.92);
  --popover: oklch(0.982 0.006 259.94);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 259.94);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.536 0.222 260.892);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.887 0.011 259.944);
  --secondary-foreground: oklch(0.369 0.025 259.881);
  --accent: oklch(0.817 0.026 259.94);
  --accent-foreground: oklch(0.289 0.028 259.807);
  --destructive: oklch(0.375 0.139 29.505);
  --destructive-foreground: oklch(0.861 0.065 23.207);
  --ring: oklch(0.536 0.222 260.892);
  --chart-1: oklch(0.536 0.222 260.892);
  --chart-2: oklch(0.887 0.011 259.944);
  --chart-3: oklch(0.817 0.026 259.94);
  --chart-4: oklch(0.911 0.008 259.943);
  --chart-5: oklch(0.537 0.228 261.072);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.009 253.078);
  --foreground: oklch(0.992 0.001 259.935);
  --muted: oklch(0.154 0.008 259.941);
  --muted-foreground: oklch(0.698 0.021 259.942);
  --popover: oklch(0.087 0.009 253.078);
  --popover-foreground: oklch(0.992 0.001 259.935);
  --card: oklch(0.087 0.009 253.078);
  --card-foreground: oklch(0.992 0.001 259.935);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.536 0.222 260.892);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.212 0.007 259.94);
  --secondary-foreground: oklch(0.758 0.015 259.946);
  --accent: oklch(0.282 0.018 259.895);
  --accent-foreground: oklch(0.812 0.018 259.945);
  --destructive: oklch(0.62 0.217 29.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.536 0.222 260.892);
  --chart-1: oklch(0.536 0.222 260.892);
  --chart-2: oklch(0.212 0.007 259.94);
  --chart-3: oklch(0.282 0.018 259.895);
  --chart-4: oklch(0.244 0.009 259.937);
  --chart-5: oklch(0.537 0.228 261.072);
}