Prejudice is a shadcn/ui theme built around a pink primary color (#df9bb4) with blue accents (#9bb4df). The light mode uses a neutral background (#fdf6f9). Dark mode keeps the pink primary (#df9bb4) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f9snow | #0a0507black |
| Foreground | #14060bblack | #ffffffwhite |
| Card | #fcf2f6lavenderblush | #0d0709black |
| Card foreground | #100509black | #ffffffwhite |
| Popover | #fdf6f9snow | #0a0507black |
| Popover foreground | #14060bblack | #ffffffwhite |
| Primary | #df9bb4plum | #df9bb4plum |
| Primary foreground | #36111fblack | #36111fblack |
| Secondary | #b4df9bpalegreen | #b4df9bpalegreen |
| Secondary foreground | #1f3611darkgreen | #1f3611darkgreen |
| Muted | #dae0d6gainsboro | #22291fblack |
| Muted foreground | #63725adimgray | #96a58ddarkseagreen |
| Accent | #9bb4dflightsteelblue | #9bb4dflightsteelblue |
| Accent foreground | #111f36midnightblue | #111f36midnightblue |
| Destructive | #6e1d02maroon | #f54105orangered |
| Destructive foreground | #fdbba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #df9bb4plum | #df9bb4plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.66:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 3.83:1 | AA Large |
| Accent | 7.81:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Prejudice in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 352.808);
--foreground: oklch(0.147 0.028 355.995);
--muted: oklch(0.9 0.015 133.711);
--muted-foreground: oklch(0.533 0.042 134.123);
--popover: oklch(0.981 0.008 352.808);
--popover-foreground: oklch(0.147 0.028 355.995);
--card: oklch(0.971 0.012 352.929);
--card-foreground: oklch(0.135 0.024 353.999);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.086 355.649);
--primary-foreground: oklch(0.243 0.061 359.682);
--secondary: oklch(0.855 0.101 134.433);
--secondary-foreground: oklch(0.304 0.066 135.558);
--accent: oklch(0.765 0.068 261.274);
--accent-foreground: oklch(0.24 0.048 260.733);
--destructive: oklch(0.361 0.119 36.803);
--destructive-foreground: oklch(0.848 0.083 39.217);
--ring: oklch(0.762 0.086 355.649);
--chart-1: oklch(0.762 0.086 355.649);
--chart-2: oklch(0.855 0.101 134.433);
--chart-3: oklch(0.765 0.068 261.274);
--chart-4: oklch(0.871 0.089 134.307);
--chart-5: oklch(0.76 0.092 355.836);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.011 352.383);
--foreground: oklch(1 0 180);
--muted: oklch(0.27 0.02 134.098);
--muted-foreground: oklch(0.704 0.039 133.964);
--popover: oklch(0.126 0.011 352.383);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.013 353.466);
--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.762 0.086 355.649);
--primary-foreground: oklch(0.243 0.061 359.682);
--secondary: oklch(0.855 0.101 134.433);
--secondary-foreground: oklch(0.304 0.066 135.558);
--accent: oklch(0.765 0.068 261.274);
--accent-foreground: oklch(0.24 0.048 260.733);
--destructive: oklch(0.64 0.223 34.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.762 0.086 355.649);
--chart-1: oklch(0.762 0.086 355.649);
--chart-2: oklch(0.855 0.101 134.433);
--chart-3: oklch(0.765 0.068 261.274);
--chart-4: oklch(0.871 0.089 134.307);
--chart-5: oklch(0.76 0.092 355.836);
}