Sapphire for shadcn/ui

Sapphire is a shadcn/ui theme built around a vivid cyan primary color (#74c6ec) with muted cyan accents (#aebbc2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#74c6ec) on a cyan-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070b0dblack
Foreground
#030d12black
#ffffffwhite
Card
#fcfcfcsnow
#090e11black
Card foreground
#020a0dblack
#ffffffwhite
Popover
#fcfcfcsnow
#090e11black
Popover foreground
#020a0dblack
#ffffffwhite
Primary
#74c6ecskyblue
#74c6ecskyblue
Primary foreground
#061d28black
#061d28black
Secondary
#ced2d4lightgrey
#253137darkslategray
Secondary foreground
#35393bdarkslategray
#bccbd2lightsteelblue
Muted
#d2dbe0gainsboro
#1f292ddarkslategray
Muted foreground
#494a4bdarkslategray
#b4b5b6silver
Accent
#aebbc2silver
#304954darkslategray
Accent foreground
#1a2023black
#d2dfe5gainsboro
Destructive
#6e1202maroon
#f52905orangered
Destructive foreground
#fdb2a5lightpink
#ffffffwhite
Border
#e2e7e9lavender
#161b1dblack
Input
#e2e7e9lavender
#161b1dblack
Ring
#74c6ecskyblue
#74c6ecskyblue

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.53:1AAA
Primary button9.08:1AAA
Secondary button7.67:1AAA
Muted text6.33:1AA
Accent8.39:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.72:1AAA
Text on card19.38:1AAA
Primary button9.08:1AAA
Secondary button7.99:1AAA
Muted text7.24:1AAA
Accent6.99:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.02 224.784);
  --muted: oklch(0.886 0.012 227.024);
  --muted-foreground: oklch(0.409 0.002 226.903);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.135 0.018 221.21);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.018 221.21);
  --border: oklch(0.924 0.005 226.926);
  --input: oklch(0.924 0.005 226.926);
  --primary: oklch(0.788 0.097 229.633);
  --primary-foreground: oklch(0.219 0.037 231.346);
  --secondary: oklch(0.862 0.005 226.925);
  --secondary-foreground: oklch(0.342 0.007 227.133);
  --accent: oklch(0.784 0.018 227.149);
  --accent-foreground: oklch(0.24 0.01 227.454);
  --destructive: oklch(0.35 0.128 32.552);
  --destructive-foreground: oklch(0.832 0.09 30.241);
  --ring: oklch(0.788 0.097 229.633);
  --chart-1: oklch(0.788 0.097 229.633);
  --chart-2: oklch(0.862 0.005 226.925);
  --chart-3: oklch(0.784 0.018 227.149);
  --chart-4: oklch(0.885 0.004 226.911);
  --chart-5: oklch(0.79 0.1 229.794);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.009 226.053);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.015 227.725);
  --muted-foreground: oklch(0.773 0.001 226.878);
  --popover: oklch(0.16 0.01 227.663);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.01 227.663);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.217 0.007 227.324);
  --input: oklch(0.217 0.007 227.324);
  --primary: oklch(0.788 0.097 229.633);
  --primary-foreground: oklch(0.219 0.037 231.346);
  --secondary: oklch(0.305 0.02 227.903);
  --secondary-foreground: oklch(0.833 0.019 227.163);
  --accent: oklch(0.39 0.036 228.558);
  --accent-foreground: oklch(0.895 0.016 227.092);
  --destructive: oklch(0.622 0.237 31.401);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.788 0.097 229.633);
  --chart-1: oklch(0.788 0.097 229.633);
  --chart-2: oklch(0.305 0.02 227.903);
  --chart-3: oklch(0.39 0.036 228.558);
  --chart-4: oklch(0.336 0.023 227.949);
  --chart-5: oklch(0.79 0.1 229.794);
}