blue 2 for shadcn/ui

blue 2 is a shadcn/ui theme built around a cyan primary color (#81c4d5) with green accents (#c4d581). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the cyan primary (#81c4d5) on a neutral background (#030708).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030708black
Foreground
#020b0dblack
#f6f8f9whitesmoke
Card
#fbfdfewhite
#030708black
Card foreground
#020b0dblack
#f6f8f9whitesmoke
Popover
#fbfdfewhite
#030708black
Popover foreground
#020b0dblack
#f6f8f9whitesmoke
Primary
#81c4d5skyblue
#81c4d5skyblue
Primary foreground
#09171bblack
#09171bblack
Secondary
#d581c4orchid
#d581c4orchid
Secondary foreground
#1b0917black
#1b0917black
Muted
#f4ecf2whitesmoke
#130b12black
Muted foreground
#635f62dimgray
#a09c9fdarkgray
Accent
#c4d581tan
#c4d581tan
Accent foreground
#171b09black
#171b09black
Destructive
#c35413chocolate
#ed8345coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#81c4d5skyblue
#81c4d5skyblue

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button9.38:1AAA
Secondary button7.06:1AAA
Muted text5.40:1AA
Accent11.00:1AAA
Destructive4.57:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button9.38:1AAA
Secondary button7.06:1AAA
Muted text7.13:1AAA
Accent11.00:1AAA
Destructive7.90:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 214.323);
  --foreground: oklch(0.14 0.019 210.853);
  --muted: oklch(0.95 0.012 332.192);
  --muted-foreground: oklch(0.49 0.007 332.213);
  --popover: oklch(0.993 0.002 214.323);
  --popover-foreground: oklch(0.14 0.019 210.853);
  --card: oklch(0.993 0.002 214.323);
  --card-foreground: oklch(0.14 0.019 210.853);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.072 215.248);
  --primary-foreground: oklch(0.194 0.021 215.624);
  --secondary: oklch(0.713 0.134 334.582);
  --secondary-foreground: oklch(0.175 0.04 335.115);
  --accent: oklch(0.841 0.11 118.066);
  --accent-foreground: oklch(0.212 0.032 118.526);
  --destructive: oklch(0.58 0.158 44.713);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.072 215.248);
  --chart-1: oklch(0.782 0.072 215.248);
  --chart-2: oklch(0.713 0.134 334.582);
  --chart-3: oklch(0.841 0.11 118.066);
  --chart-4: oklch(0.738 0.121 334.274);
  --chart-5: oklch(0.785 0.076 215.348);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 210.694);
  --foreground: oklch(0.978 0.002 214.323);
  --muted: oklch(0.165 0.019 333.581);
  --muted-foreground: oklch(0.697 0.006 332.139);
  --popover: oklch(0.12 0.011 210.694);
  --popover-foreground: oklch(0.978 0.002 214.323);
  --card: oklch(0.12 0.011 210.694);
  --card-foreground: oklch(0.978 0.002 214.323);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.072 215.248);
  --primary-foreground: oklch(0.194 0.021 215.624);
  --secondary: oklch(0.713 0.134 334.582);
  --secondary-foreground: oklch(0.175 0.04 335.115);
  --accent: oklch(0.841 0.11 118.066);
  --accent-foreground: oklch(0.212 0.032 118.526);
  --destructive: oklch(0.715 0.15 48.632);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.782 0.072 215.248);
  --chart-1: oklch(0.782 0.072 215.248);
  --chart-2: oklch(0.713 0.134 334.582);
  --chart-3: oklch(0.841 0.11 118.066);
  --chart-4: oklch(0.738 0.121 334.274);
  --chart-5: oklch(0.785 0.076 215.348);
}