Popular is a shadcn/ui theme built around a deep red primary color (#210a07) with muted light red accents (#dfd8d8). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep red primary (#210a07) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #040101black |
| Foreground | #140706black | #fbf9f9snow |
| Card | #fdfcfcsnow | #040101black |
| Card foreground | #140706black | #fbf9f9snow |
| Popover | #fdfcfcsnow | #040101black |
| Popover foreground | #140706black | #fbf9f9snow |
| Primary | #210a07black | #210a07black |
| Primary foreground | #e28279lightcoral | #e28279lightcoral |
| Secondary | #dfd8d8gainsboro | #2e2929darkslategray |
| Secondary foreground | #493d3cdarkslategray | #c8c1c1silver |
| Muted | #f4e7e6linen | #190c0bblack |
| Muted foreground | #585151dimgray | #aea8a7darkgray |
| Accent | #dfd8d8gainsboro | #2e2929darkslategray |
| Accent foreground | #493d3cdarkslategray | #c8c1c1silver |
| Destructive | #6d0803maroon | #fa4238tomato |
| Destructive foreground | #fdaaa5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #210a07black | #210a07black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Popular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 23.596);
--foreground: oklch(0.148 0.024 27.411);
--muted: oklch(0.939 0.014 23.735);
--muted-foreground: oklch(0.442 0.008 23.769);
--popover: oklch(0.992 0.002 23.596);
--popover-foreground: oklch(0.148 0.024 27.411);
--card: oklch(0.992 0.002 23.596);
--card-foreground: oklch(0.148 0.024 27.411);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.182 0.042 27.773);
--primary-foreground: oklch(0.708 0.12 26.01);
--secondary: oklch(0.888 0.007 23.661);
--secondary-foreground: oklch(0.372 0.017 24.09);
--accent: oklch(0.888 0.007 23.661);
--accent-foreground: oklch(0.372 0.017 24.09);
--destructive: oklch(0.342 0.133 29.86);
--destructive-foreground: oklch(0.817 0.099 22.765);
--ring: oklch(0.182 0.042 27.773);
--chart-1: oklch(0.182 0.042 27.773);
--chart-2: oklch(0.888 0.007 23.661);
--chart-3: oklch(0.888 0.007 23.661);
--chart-4: oklch(0.912 0.006 23.641);
--chart-5: oklch(0.182 0.044 28.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.013 28.628);
--foreground: oklch(0.984 0.001 23.594);
--muted: oklch(0.173 0.023 25.39);
--muted-foreground: oklch(0.737 0.007 23.677);
--popover: oklch(0.084 0.013 28.628);
--popover-foreground: oklch(0.984 0.001 23.594);
--card: oklch(0.084 0.013 28.628);
--card-foreground: oklch(0.984 0.001 23.594);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.182 0.042 27.773);
--primary-foreground: oklch(0.708 0.12 26.01);
--secondary: oklch(0.287 0.007 23.837);
--secondary-foreground: oklch(0.817 0.007 23.669);
--accent: oklch(0.287 0.007 23.837);
--accent-foreground: oklch(0.817 0.007 23.669);
--destructive: oklch(0.652 0.222 28.11);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.042 27.773);
--chart-1: oklch(0.182 0.042 27.773);
--chart-2: oklch(0.287 0.007 23.837);
--chart-3: oklch(0.287 0.007 23.837);
--chart-4: oklch(0.317 0.008 23.848);
--chart-5: oklch(0.182 0.044 28.205);
}