Popularity is a shadcn/ui theme built around a light pink primary color (#d7acbd) with light red accents (#d7b1ac). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light pink primary (#d7acbd) on a pink-tinted background (#0e0709).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0e0709black |
| Foreground | #17030ablack | #faf4f7whitesmoke |
| Card | #fdf6f9snow | #11080cblack |
| Card foreground | #120208black | #fcf8f9snow |
| Popover | #fdf6f9snow | #11080cblack |
| Popover foreground | #120208black | #fcf8f9snow |
| Primary | #d7acbdsilver | #d7acbdsilver |
| Primary foreground | #371b25darkslategray | #371b25darkslategray |
| Secondary | #d7acd2plum | #d7acd2plum |
| Secondary foreground | #371b34darkslategray | #371b34darkslategray |
| Muted | #efeceewhitesmoke | #131013black |
| Muted foreground | #4d424cdarkslategray | #bdb2bcsilver |
| Accent | #d7b1actan | #d7b1actan |
| Accent foreground | #371e1bblack | #371e1bblack |
| Destructive | #65170bmaroon | #e13419orangered |
| Destructive foreground | #f6b6aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7acbdsilver | #d7acbdsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 18.40:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Popularity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 351.711);
--foreground: oklch(0.144 0.043 355.735);
--muted: oklch(0.945 0.005 329.196);
--muted-foreground: oklch(0.393 0.023 329.783);
--popover: oklch(0.98 0.008 351.832);
--popover-foreground: oklch(0.13 0.038 353.571);
--card: oklch(0.98 0.008 351.832);
--card-foreground: oklch(0.13 0.038 353.571);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.789 0.054 353.469);
--primary-foreground: oklch(0.264 0.048 356.471);
--secondary: oklch(0.796 0.071 330.125);
--secondary-foreground: oklch(0.271 0.06 331.499);
--accent: oklch(0.794 0.045 26.918);
--accent-foreground: oklch(0.267 0.04 28.137);
--destructive: oklch(0.337 0.113 31.654);
--destructive-foreground: oklch(0.833 0.076 28.673);
--ring: oklch(0.789 0.054 353.469);
--chart-1: oklch(0.789 0.054 353.469);
--chart-2: oklch(0.796 0.071 330.125);
--chart-3: oklch(0.794 0.045 26.918);
--chart-4: oklch(0.821 0.062 329.974);
--chart-5: oklch(0.787 0.059 353.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 352.583);
--foreground: oklch(0.973 0.007 351.803);
--muted: oklch(0.179 0.008 329.624);
--muted-foreground: oklch(0.776 0.019 329.416);
--popover: oklch(0.151 0.017 354.269);
--popover-foreground: oklch(0.982 0.005 351.731);
--card: oklch(0.151 0.017 354.269);
--card-foreground: oklch(0.982 0.005 351.731);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.789 0.054 353.469);
--primary-foreground: oklch(0.264 0.048 356.471);
--secondary: oklch(0.796 0.071 330.125);
--secondary-foreground: oklch(0.271 0.06 331.499);
--accent: oklch(0.794 0.045 26.918);
--accent-foreground: oklch(0.267 0.04 28.137);
--destructive: oklch(0.594 0.212 31.591);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.054 353.469);
--chart-1: oklch(0.789 0.054 353.469);
--chart-2: oklch(0.796 0.071 330.125);
--chart-3: oklch(0.794 0.045 26.918);
--chart-4: oklch(0.821 0.062 329.974);
--chart-5: oklch(0.787 0.059 353.633);
}