Fact for shadcn/ui

Fact is a shadcn/ui theme built around a pink primary color (#c983a9) with muted pink accents (#c2adb9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#c983a9) on a pink-tinted background (#0d070b).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0d070bblack
Foreground
#040103black
#f8f6f7whitesmoke
Card
#fdf7fasnow
#11090dblack
Card foreground
#000000black
#fbf9fasnow
Popover
#fdf7fasnow
#11090dblack
Popover foreground
#000000black
#fbf9fasnow
Primary
#c983a9rosybrown
#c983a9rosybrown
Primary foreground
#12080dblack
#12080dblack
Secondary
#d3cacflightgrey
#1b181ablack
Secondary foreground
#3a3136darkslategray
#b6afb3darkgray
Muted
#e6ccdagainsboro
#331928darkslategray
Muted foreground
#725a67dimgray
#a58d9arosybrown
Accent
#c2adb9silver
#2a2227darkslategray
Accent foreground
#231a1fblack
#c6b8c0silver
Destructive
#ce4e12chocolate
#ee733atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c983a9rosybrown
#c983a9rosybrown

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.84:1AAA
Primary button6.83:1AA
Secondary button7.85:1AAA
Muted text4.14:1AA Large
Accent8.04:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background18.53:1AAA
Text on card18.76:1AAA
Primary button6.83:1AA
Secondary button8.18:1AAA
Muted text5.23:1AA
Accent8.11:1AAA
Destructive7.14:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 342.714);
  --foreground: oklch(0.084 0.017 342.583);
  --muted: oklch(0.87 0.035 343.567);
  --muted-foreground: oklch(0.496 0.038 344.39);
  --popover: oklch(0.981 0.008 342.811);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.008 342.811);
  --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.693 0.099 345.857);
  --primary-foreground: oklch(0.151 0.021 345.407);
  --secondary: oklch(0.848 0.012 342.952);
  --secondary-foreground: oklch(0.324 0.016 343.818);
  --accent: oklch(0.769 0.029 343.531);
  --accent-foreground: oklch(0.231 0.017 344.346);
  --destructive: oklch(0.59 0.175 40.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.693 0.099 345.857);
  --chart-1: oklch(0.693 0.099 345.857);
  --chart-2: oklch(0.848 0.012 342.952);
  --chart-3: oklch(0.769 0.029 343.531);
  --chart-4: oklch(0.872 0.01 342.89);
  --chart-5: oklch(0.691 0.106 346.105);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 343.837);
  --foreground: oklch(0.976 0.002 342.678);
  --muted: oklch(0.256 0.047 346.776);
  --muted-foreground: oklch(0.669 0.035 343.851);
  --popover: oklch(0.152 0.016 344.921);
  --popover-foreground: oklch(0.984 0.002 342.657);
  --card: oklch(0.152 0.016 344.921);
  --card-foreground: oklch(0.984 0.002 342.657);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.693 0.099 345.857);
  --primary-foreground: oklch(0.151 0.021 345.407);
  --secondary: oklch(0.214 0.004 343.053);
  --secondary-foreground: oklch(0.761 0.008 342.886);
  --accent: oklch(0.264 0.015 343.971);
  --accent-foreground: oklch(0.797 0.019 343.194);
  --destructive: oklch(0.691 0.167 43.473);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.693 0.099 345.857);
  --chart-1: oklch(0.693 0.099 345.857);
  --chart-2: oklch(0.214 0.004 343.053);
  --chart-3: oklch(0.264 0.015 343.971);
  --chart-4: oklch(0.246 0.005 343.092);
  --chart-5: oklch(0.691 0.106 346.105);
}