Fond for shadcn/ui

Fond is a shadcn/ui theme built around a deep cyan primary color (#1f6470) with muted light cyan accents (#e8eced). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the deep cyan primary (#1f6470) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#030707black
Foreground
#010404black
#fcfdfdwhite
Card
#f8fbfcghostwhite
#030707black
Card foreground
#010404black
#fcfdfdwhite
Popover
#f8fbfcghostwhite
#030707black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#1f6470darkslategray
#1f6470darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8ecedlavender
#202222black
Secondary foreground
#48585bdarkslategray
#b7bcbdsilver
Muted
#d5e4e7gainsboro
#18272adarkslategray
Muted foreground
#3f494adarkslategray
#b5bec0silver
Accent
#e8ecedlavender
#202222black
Accent foreground
#48585bdarkslategray
#b7bcbdsilver
Destructive
#79200cmaroon
#d53815firebrick
Destructive foreground
#f9c9bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1f6470darkslategray
#1f6470darkslategray

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button6.75:1AA
Secondary button6.26:1AA
Muted text7.10:1AAA
Accent6.26:1AA
Destructive6.99:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button6.75:1AA
Secondary button8.32:1AAA
Muted text8.10:1AAA
Accent8.32:1AAA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 209.459);
  --foreground: oklch(0.097 0.011 205.825);
  --muted: oklch(0.909 0.017 209.433);
  --muted-foreground: oklch(0.396 0.012 209.432);
  --popover: oklch(0.986 0.003 209.459);
  --popover-foreground: oklch(0.097 0.011 205.825);
  --card: oklch(0.986 0.003 209.459);
  --card-foreground: oklch(0.097 0.011 205.825);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.466 0.069 211.684);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.941 0.005 209.455);
  --secondary-foreground: oklch(0.449 0.021 209.463);
  --accent: oklch(0.941 0.005 209.455);
  --accent-foreground: oklch(0.449 0.021 209.463);
  --destructive: oklch(0.385 0.126 33.792);
  --destructive-foreground: oklch(0.874 0.057 32.826);
  --ring: oklch(0.466 0.069 211.684);
  --chart-1: oklch(0.466 0.069 211.684);
  --chart-2: oklch(0.941 0.005 209.455);
  --chart-3: oklch(0.941 0.005 209.455);
  --chart-4: oklch(0.963 0.003 209.46);
  --chart-5: oklch(0.47 0.072 211.933);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.01 206.631);
  --foreground: oklch(0.993 0.002 209.464);
  --muted: oklch(0.262 0.021 209.686);
  --muted-foreground: oklch(0.795 0.011 209.439);
  --popover: oklch(0.121 0.01 206.631);
  --popover-foreground: oklch(0.993 0.002 209.464);
  --card: oklch(0.121 0.01 206.631);
  --card-foreground: oklch(0.993 0.002 209.464);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.466 0.069 211.684);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.25 0.003 209.438);
  --secondary-foreground: oklch(0.792 0.005 209.451);
  --accent: oklch(0.25 0.003 209.438);
  --accent-foreground: oklch(0.792 0.005 209.451);
  --destructive: oklch(0.578 0.199 33.455);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.466 0.069 211.684);
  --chart-1: oklch(0.466 0.069 211.684);
  --chart-2: oklch(0.25 0.003 209.438);
  --chart-3: oklch(0.25 0.003 209.438);
  --chart-4: oklch(0.282 0.004 209.437);
  --chart-5: oklch(0.47 0.072 211.933);
}