Fond for shadcn/ui

Fond is a shadcn/ui theme built around a deep green primary color (#0e370c) with deep red accents (#370c0e). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the deep green primary (#0e370c) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#030703black
Foreground
#051004black
#ffffffwhite
Card
#f8fcf8mintcream
#030703black
Card foreground
#051004black
#ffffffwhite
Popover
#f8fcf8mintcream
#030703black
Popover foreground
#051004black
#ffffffwhite
Primary
#0e370cdarkgreen
#0e370cdarkgreen
Primary foreground
#41d539limegreen
#41d539limegreen
Secondary
#0c0e37black
#0c0e37black
Secondary foreground
#8d92e7mediumpurple
#8d92e7mediumpurple
Muted
#d1d2e0lightgrey
#1f202edarkslategray
Muted foreground
#5c5d6adimgray
#9595a3darkgray
Accent
#370c0eblack
#370c0eblack
Accent foreground
#e78d92lightcoral
#e78d92lightcoral
Destructive
#a0350esaddlebrown
#e64c14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e370cdarkgreen
#0e370cdarkgreen

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button6.90:1AA
Secondary button6.54:1AA
Muted text4.34:1AA Large
Accent7.08:1AAA
Destructive7.01:1AAA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.90:1AA
Secondary button6.54:1AA
Muted text5.46:1AA
Accent7.08:1AAA
Destructive3.88:1AA Large

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.006 144.097);
  --foreground: oklch(0.158 0.034 142.348);
  --muted: oklch(0.868 0.019 283.587);
  --muted-foreground: oklch(0.483 0.021 283.186);
  --popover: oklch(0.986 0.006 144.097);
  --popover-foreground: oklch(0.158 0.034 142.348);
  --card: oklch(0.986 0.006 144.097);
  --card-foreground: oklch(0.158 0.034 142.348);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.296 0.083 142.418);
  --primary-foreground: oklch(0.767 0.229 142.34);
  --secondary: oklch(0.193 0.078 274.079);
  --secondary-foreground: oklch(0.691 0.124 280.318);
  --accent: oklch(0.23 0.069 21.581);
  --accent-foreground: oklch(0.739 0.109 16.828);
  --destructive: oklch(0.48 0.149 37.762);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.296 0.083 142.418);
  --chart-1: oklch(0.296 0.083 142.418);
  --chart-2: oklch(0.193 0.078 274.079);
  --chart-3: oklch(0.23 0.069 21.581);
  --chart-4: oklch(0.216 0.093 273.243);
  --chart-5: oklch(0.299 0.086 142.389);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.016 142.961);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.026 281.964);
  --muted-foreground: oklch(0.674 0.019 283.462);
  --popover: oklch(0.12 0.016 142.961);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.016 142.961);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.296 0.083 142.418);
  --primary-foreground: oklch(0.767 0.229 142.34);
  --secondary: oklch(0.193 0.078 274.079);
  --secondary-foreground: oklch(0.691 0.124 280.318);
  --accent: oklch(0.23 0.069 21.581);
  --accent-foreground: oklch(0.739 0.109 16.828);
  --destructive: oklch(0.626 0.199 37.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.296 0.083 142.418);
  --chart-1: oklch(0.296 0.083 142.418);
  --chart-2: oklch(0.193 0.078 274.079);
  --chart-3: oklch(0.23 0.069 21.581);
  --chart-4: oklch(0.216 0.093 273.243);
  --chart-5: oklch(0.299 0.086 142.389);
}