Popular is a shadcn/ui theme built around a pink primary color (#c43b86) with red accents (#c43b42). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the pink primary (#c43b86) on a pink-tinted background (#0e070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fasnow | #0e070bblack |
| Foreground | #040103black | #faf9fasnow |
| Card | #fdf6fasnow | #0e070bblack |
| Card foreground | #040103black | #faf9fasnow |
| Popover | #fdf6fasnow | #0e070bblack |
| Popover foreground | #040103black | #faf9fasnow |
| Primary | #c43b86mediumvioletred | #c43b86mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bd3bc4mediumorchid | #bd3bc4mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1d5e2gainsboro | #291d2adarkslategray |
| Muted foreground | #5f4e5fdimgray | #b0a0b1darkgray |
| Accent | #c43b42brown | #c43b42brown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8d2b01saddlebrown | #fd6321tomato |
| Destructive foreground | #fed4c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c43b86mediumvioletred | #c43b86mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 4.57:1 | AA |
| Muted text | 5.39:1 | AA |
| Accent | 5.18:1 | AA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 4.57:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 5.18:1 | AA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Popular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 342.843);
--foreground: oklch(0.084 0.019 342.58);
--muted: oklch(0.886 0.022 324.272);
--muted-foreground: oklch(0.447 0.035 324.566);
--popover: oklch(0.981 0.009 342.843);
--popover-foreground: oklch(0.084 0.019 342.58);
--card: oklch(0.981 0.009 342.843);
--card-foreground: oklch(0.084 0.019 342.58);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.188 350.838);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.594 0.225 325.804);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.174 22.229);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.436 0.14 38.617);
--destructive-foreground: oklch(0.902 0.053 44.482);
--ring: oklch(0.574 0.188 350.838);
--chart-1: oklch(0.574 0.188 350.838);
--chart-2: oklch(0.594 0.225 325.804);
--chart-3: oklch(0.556 0.174 22.229);
--chart-4: oklch(0.613 0.216 325.741);
--chart-5: oklch(0.577 0.195 351.32);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 344.042);
--foreground: oklch(0.984 0.001 342.651);
--muted: oklch(0.252 0.03 324.774);
--muted-foreground: oklch(0.724 0.031 324.374);
--popover: oklch(0.139 0.017 344.042);
--popover-foreground: oklch(0.984 0.001 342.651);
--card: oklch(0.139 0.017 344.042);
--card-foreground: oklch(0.984 0.001 342.651);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.574 0.188 350.838);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.594 0.225 325.804);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.174 22.229);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.689 0.201 40.196);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.574 0.188 350.838);
--chart-1: oklch(0.574 0.188 350.838);
--chart-2: oklch(0.594 0.225 325.804);
--chart-3: oklch(0.556 0.174 22.229);
--chart-4: oklch(0.613 0.216 325.741);
--chart-5: oklch(0.577 0.195 351.32);
}