Fond Enchanting Sapphire for shadcn/ui

Fond Enchanting Sapphire is a shadcn/ui theme built around a vivid blue primary color (#076fdf) with muted light blue accents (#e9ebed). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#076fdf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020a12black
#f8fafcghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#02070eblack
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020a12black
#f8fafcghostwhite
Primary
#076fdfdodgerblue
#076fdfdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e9ebedlavender
#25292cdarkslategray
Secondary foreground
#49515adarkslategray
#bcc2c7silver
Muted
#cdd8e5gainsboro
#1a2632darkslategray
Muted foreground
#525b66dimgray
#99a3addarkgray
Accent
#e9ebedlavender
#25292cdarkslategray
Accent foreground
#49515adarkslategray
#bcc2c7silver
Destructive
#e92923crimson
#f7413btomato
Destructive foreground
#f9f8f8whitesmoke
#ffffffwhite
Border
#f1f2f4whitesmoke
#1e2125black
Input
#f1f2f4whitesmoke
#1e2125black
Ring
#076fdfdodgerblue
#076fdfdodgerblue

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.77:1AAA
Primary button4.82:1AA
Secondary button6.70:1AA
Muted text4.78:1AA
Accent6.70:1AA
Destructive4.10:1AA Large
Dark mode
Text on background20.07:1AAA
Text on card20.16:1AAA
Primary button4.82:1AA
Secondary button8.17:1AAA
Muted text6.00:1AA
Accent8.17:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.139 0.024 243.375);
  --muted: oklch(0.878 0.022 249.873);
  --muted-foreground: oklch(0.468 0.021 250.043);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.139 0.024 243.375);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.02 239.848);
  --border: oklch(0.961 0.002 249.674);
  --input: oklch(0.961 0.002 249.674);
  --primary: oklch(0.556 0.189 256.373);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.938 0.004 249.686);
  --secondary-foreground: oklch(0.432 0.017 250.003);
  --accent: oklch(0.938 0.004 249.686);
  --accent-foreground: oklch(0.432 0.017 250.003);
  --destructive: oklch(0.603 0.225 28.496);
  --destructive-foreground: oklch(0.98 0.001 19.622);
  --ring: oklch(0.556 0.189 256.373);
  --chart-1: oklch(0.556 0.189 256.373);
  --chart-2: oklch(0.938 0.004 249.686);
  --chart-3: oklch(0.938 0.004 249.686);
  --chart-4: oklch(0.961 0.002 249.672);
  --chart-5: oklch(0.558 0.194 256.698);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 249.681);
  --muted: oklch(0.263 0.029 250.622);
  --muted-foreground: oklch(0.711 0.019 249.889);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.003 249.681);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 249.666);
  --border: oklch(0.246 0.009 249.971);
  --input: oklch(0.246 0.009 249.971);
  --primary: oklch(0.556 0.189 256.373);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.278 0.009 249.93);
  --secondary-foreground: oklch(0.81 0.01 249.764);
  --accent: oklch(0.278 0.009 249.93);
  --accent-foreground: oklch(0.81 0.01 249.764);
  --destructive: oklch(0.647 0.219 27.307);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.556 0.189 256.373);
  --chart-1: oklch(0.556 0.189 256.373);
  --chart-2: oklch(0.278 0.009 249.93);
  --chart-3: oklch(0.278 0.009 249.93);
  --chart-4: oklch(0.308 0.01 249.941);
  --chart-5: oklch(0.558 0.194 256.698);
}