Fawn for shadcn/ui

Fawn is a shadcn/ui theme built around a near-black primary color (#080807) with near-black accents (#080708). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the near-black primary (#080807) on a yellow-tinted background (#0b0a04).

Color palette

TokenLightDark
Background
#fdfcf7snow
#0b0a04black
Foreground
#090701black
#fcfbf8snow
Card
#fdfcf7snow
#0b0a04black
Card foreground
#090701black
#fcfbf8snow
Popover
#fdfcf7snow
#0b0a04black
Popover foreground
#090701black
#fcfbf8snow
Primary
#080807black
#080807black
Primary foreground
#aba796darkgray
#aba796darkgray
Secondary
#070808black
#070808black
Secondary foreground
#96aba7darkgray
#96aba7darkgray
Muted
#eaf6f3whitesmoke
#091513black
Muted foreground
#444645darkslategray
#b9bbbbsilver
Accent
#080708black
#080708black
Accent foreground
#a796abdarkgray
#a796abdarkgray
Destructive
#61200amaroon
#d44616chocolate
Destructive foreground
#f6bba7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080807black
#080807black

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button8.29:1AAA
Secondary button8.27:1AAA
Muted text8.57:1AAA
Accent7.27:1AAA
Destructive7.32:1AAA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button8.29:1AAA
Secondary button8.27:1AAA
Muted text9.63:1AAA
Accent7.27:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 95.12);
  --foreground: oklch(0.13 0.02 100.343);
  --muted: oklch(0.963 0.013 182.813);
  --muted-foreground: oklch(0.391 0.002 183.052);
  --popover: oklch(0.99 0.007 95.12);
  --popover-foreground: oklch(0.13 0.02 100.343);
  --card: oklch(0.99 0.007 95.12);
  --card-foreground: oklch(0.13 0.02 100.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.135 0.004 96.015);
  --primary-foreground: oklch(0.727 0.024 95.389);
  --secondary: oklch(0.135 0.003 183.148);
  --secondary-foreground: oklch(0.724 0.024 182.259);
  --accent: oklch(0.13 0.005 319.797);
  --accent-foreground: oklch(0.695 0.035 319.458);
  --destructive: oklch(0.341 0.1 37.693);
  --destructive-foreground: oklch(0.84 0.074 39.225);
  --ring: oklch(0.135 0.004 96.015);
  --chart-1: oklch(0.135 0.004 96.015);
  --chart-2: oklch(0.135 0.003 183.148);
  --chart-3: oklch(0.13 0.005 319.797);
  --chart-4: oklch(0.174 0.006 182.29);
  --chart-5: oklch(0.136 0.004 96.267);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.016 98.574);
  --foreground: oklch(0.988 0.004 95.081);
  --muted: oklch(0.185 0.018 180.161);
  --muted-foreground: oklch(0.79 0.002 183.129);
  --popover: oklch(0.144 0.016 98.574);
  --popover-foreground: oklch(0.988 0.004 95.081);
  --card: oklch(0.144 0.016 98.574);
  --card-foreground: oklch(0.988 0.004 95.081);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.135 0.004 96.015);
  --primary-foreground: oklch(0.727 0.024 95.389);
  --secondary: oklch(0.135 0.003 183.148);
  --secondary-foreground: oklch(0.724 0.024 182.259);
  --accent: oklch(0.13 0.005 319.797);
  --accent-foreground: oklch(0.695 0.035 319.458);
  --destructive: oklch(0.59 0.187 36.799);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.135 0.004 96.015);
  --chart-1: oklch(0.135 0.004 96.015);
  --chart-2: oklch(0.135 0.003 183.148);
  --chart-3: oklch(0.13 0.005 319.797);
  --chart-4: oklch(0.174 0.006 182.29);
  --chart-5: oklch(0.136 0.004 96.267);
}