Fond for shadcn/ui

Fond is a shadcn/ui theme built around a deep teal primary color (#105c4a) with neutral gray accents (#dbdcdb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#105c4a) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030706black
Foreground
#010907black
#f5faf9mintcream
Card
#fbfefdwhite
#030706black
Card foreground
#010907black
#f5faf9mintcream
Popover
#fbfefdwhite
#030706black
Popover foreground
#010907black
#f5faf9mintcream
Primary
#105c4adarkslategray
#105c4adarkslategray
Primary foreground
#acf1e1paleturquoise
#acf1e1paleturquoise
Secondary
#dbdcdbgainsboro
#212121black
Secondary foreground
#424343darkslategray
#b9bbbbsilver
Muted
#eef6f4whitesmoke
#09110fblack
Muted foreground
#626464dimgray
#9b9d9cdarkgray
Accent
#dbdcdbgainsboro
#212121black
Accent foreground
#424343darkslategray
#b9bbbbsilver
Destructive
#db3e06orangered
#fa6c38tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#105c4adarkslategray
#105c4adarkslategray

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.23:1AA
Secondary button7.20:1AAA
Muted text5.43:1AA
Accent7.20:1AAA
Destructive4.46:1AA Large
Dark mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button6.23:1AA
Secondary button8.31:1AAA
Muted text7.01:1AAA
Accent8.31:1AAA
Destructive7.25:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 180.875);
  --foreground: oklch(0.128 0.019 180.945);
  --muted: oklch(0.967 0.009 180.698);
  --muted-foreground: oklch(0.503 0.003 180.815);
  --popover: oklch(0.994 0.003 180.875);
  --popover-foreground: oklch(0.128 0.019 180.945);
  --card: oklch(0.994 0.003 180.875);
  --card-foreground: oklch(0.128 0.019 180.945);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.424 0.076 172.5);
  --primary-foreground: oklch(0.908 0.072 178.474);
  --secondary: oklch(0.893 0.001 180.935);
  --secondary-foreground: oklch(0.381 0.002 180.824);
  --accent: oklch(0.893 0.001 180.935);
  --accent-foreground: oklch(0.381 0.002 180.824);
  --destructive: oklch(0.593 0.2 36.009);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.076 172.5);
  --chart-1: oklch(0.424 0.076 172.5);
  --chart-2: oklch(0.893 0.001 180.935);
  --chart-3: oklch(0.893 0.001 180.935);
  --chart-4: oklch(0.916 0.001 180.941);
  --chart-5: oklch(0.429 0.078 172.169);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.009 180.953);
  --foreground: oklch(0.98 0.005 180.805);
  --muted: oklch(0.168 0.013 178.619);
  --muted-foreground: oklch(0.693 0.002 180.863);
  --popover: oklch(0.121 0.009 180.953);
  --popover-foreground: oklch(0.98 0.005 180.805);
  --card: oklch(0.121 0.009 180.953);
  --card-foreground: oklch(0.98 0.005 180.805);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.424 0.076 172.5);
  --primary-foreground: oklch(0.908 0.072 178.474);
  --secondary: oklch(0.249 0.001 180.844);
  --secondary-foreground: oklch(0.79 0.002 180.903);
  --accent: oklch(0.249 0.001 180.844);
  --accent-foreground: oklch(0.79 0.002 180.903);
  --destructive: oklch(0.698 0.186 39.38);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.424 0.076 172.5);
  --chart-1: oklch(0.424 0.076 172.5);
  --chart-2: oklch(0.249 0.001 180.844);
  --chart-3: oklch(0.249 0.001 180.844);
  --chart-4: oklch(0.281 0.001 180.837);
  --chart-5: oklch(0.429 0.078 172.169);
}