Fence for shadcn/ui

Fence is a shadcn/ui theme built around a light pink primary color (#edbfd2) with light blue accents (#bfd2ed). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the light pink primary (#edbfd2) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdf7f9snow
#070305black
Foreground
#000000black
#fdfcfcsnow
Card
#fbf3f7lavenderblush
#0b0407black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f9snow
#070305black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#edbfd2pink
#edbfd2pink
Primary foreground
#601a36maroon
#601a36maroon
Secondary
#d2edbflightgrey
#d2edbflightgrey
Secondary foreground
#091004black
#091004black
Muted
#d9e5d2gainsboro
#222d1ablack
Muted foreground
#404c39darkslategray
#bbc6b3silver
Accent
#bfd2edlightblue
#bfd2edlightblue
Accent foreground
#1a3660midnightblue
#1a3660midnightblue
Destructive
#6a2e0bsaddlebrown
#e86a21chocolate
Destructive foreground
#f7cab1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edbfd2pink
#edbfd2pink

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.30:1AAA
Primary button7.64:1AAA
Secondary button15.30:1AAA
Muted text6.94:1AA
Accent7.82:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.26:1AAA
Primary button7.64:1AAA
Secondary button15.30:1AAA
Muted text8.12:1AAA
Accent7.82:1AAA
Destructive6.51:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 350.808);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.028 132.59);
  --muted-foreground: oklch(0.399 0.034 133.028);
  --popover: oklch(0.981 0.006 350.808);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.01 350.903);
  --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.851 0.058 352.476);
  --primary-foreground: oklch(0.341 0.104 359.735);
  --secondary: oklch(0.915 0.068 132.949);
  --secondary-foreground: oklch(0.161 0.028 132.026);
  --accent: oklch(0.857 0.044 258.372);
  --accent-foreground: oklch(0.336 0.081 258.376);
  --destructive: oklch(0.379 0.097 46.129);
  --destructive-foreground: oklch(0.872 0.061 51.685);
  --ring: oklch(0.851 0.058 352.476);
  --chart-1: oklch(0.851 0.058 352.476);
  --chart-2: oklch(0.915 0.068 132.949);
  --chart-3: oklch(0.857 0.044 258.372);
  --chart-4: oklch(0.931 0.056 132.823);
  --chart-5: oklch(0.85 0.061 352.575);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.014 350.356);
  --foreground: oklch(0.992 0.001 350.646);
  --muted: oklch(0.281 0.036 133.449);
  --muted-foreground: oklch(0.813 0.028 132.624);
  --popover: oklch(0.108 0.014 350.356);
  --popover-foreground: oklch(0.992 0.001 350.646);
  --card: oklch(0.124 0.016 350.42);
  --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.851 0.058 352.476);
  --primary-foreground: oklch(0.341 0.104 359.735);
  --secondary: oklch(0.915 0.068 132.949);
  --secondary-foreground: oklch(0.161 0.028 132.026);
  --accent: oklch(0.857 0.044 258.372);
  --accent-foreground: oklch(0.336 0.081 258.376);
  --destructive: oklch(0.668 0.175 45.698);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.851 0.058 352.476);
  --chart-1: oklch(0.851 0.058 352.476);
  --chart-2: oklch(0.915 0.068 132.949);
  --chart-3: oklch(0.857 0.044 258.372);
  --chart-4: oklch(0.931 0.056 132.823);
  --chart-5: oklch(0.85 0.061 352.575);
}