Fond for shadcn/ui

Fond is a shadcn/ui theme built around a deep indigo primary color (#2b127d) with deep violet accents (#60127d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#2b127d) on an indigo-tinted background (#06050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#06050bblack
Foreground
#000000black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#08060eblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#08060eblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#2b127dmidnightblue
#2b127dmidnightblue
Primary foreground
#d4c9f7thistle
#d4c9f7thistle
Secondary
#122e7dmidnightblue
#122e7dmidnightblue
Secondary foreground
#c9d6f7powderblue
#c9d6f7powderblue
Muted
#d5dbebgainsboro
#14192ablack
Muted foreground
#565961dimgray
#9ea1a9darkgray
Accent
#60127dindigo
#60127dindigo
Accent foreground
#ebc9f7lavender
#ebc9f7lavender
Destructive
#6b0f01maroon
#fe4b2ftomato
Destructive foreground
#ffab9flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2b127dmidnightblue
#2b127dmidnightblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.09:1AAA
Secondary button8.40:1AAA
Muted text5.07:1AA
Accent7.55:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.62:1AAA
Primary button9.09:1AAA
Secondary button8.40:1AAA
Muted text6.74:1AA
Accent7.55:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.023 269.892);
  --muted-foreground: oklch(0.465 0.014 269.859);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.308 0.162 281.867);
  --primary-foreground: oklch(0.861 0.064 295.722);
  --secondary: oklch(0.338 0.138 264.619);
  --secondary-foreground: oklch(0.877 0.048 269.582);
  --accent: oklch(0.376 0.169 314.432);
  --accent-foreground: oklch(0.88 0.072 317.003);
  --destructive: oklch(0.34 0.127 32.287);
  --destructive-foreground: oklch(0.82 0.1 29.039);
  --ring: oklch(0.308 0.162 281.867);
  --chart-1: oklch(0.308 0.162 281.867);
  --chart-2: oklch(0.338 0.138 264.619);
  --chart-3: oklch(0.376 0.169 314.432);
  --chart-4: oklch(0.362 0.149 264.548);
  --chart-5: oklch(0.307 0.167 280.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.016 296.721);
  --foreground: oklch(0.983 0.002 297.037);
  --muted: oklch(0.218 0.033 268.32);
  --muted-foreground: oklch(0.708 0.012 269.973);
  --popover: oklch(0.131 0.019 295.97);
  --popover-foreground: oklch(0.992 0.001 297.058);
  --card: oklch(0.131 0.019 295.97);
  --card-foreground: oklch(0.992 0.001 297.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.308 0.162 281.867);
  --primary-foreground: oklch(0.861 0.064 295.722);
  --secondary: oklch(0.338 0.138 264.619);
  --secondary-foreground: oklch(0.877 0.048 269.582);
  --accent: oklch(0.376 0.169 314.432);
  --accent-foreground: oklch(0.88 0.072 317.003);
  --destructive: oklch(0.666 0.22 31.644);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.308 0.162 281.867);
  --chart-1: oklch(0.308 0.162 281.867);
  --chart-2: oklch(0.338 0.138 264.619);
  --chart-3: oklch(0.376 0.169 314.432);
  --chart-4: oklch(0.362 0.149 264.548);
  --chart-5: oklch(0.307 0.167 280.966);
}