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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 4.14:1 | AA Large |
| Accent | 8.04:1 | AAA |
| Destructive | 4.44:1 | AA Large |
| Text on background | 18.53:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 7.14:1 | AAA |
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);
}