Popular is a shadcn/ui theme built around a deep orange primary color (#251813) with deep yellow accents (#252113). The light mode uses a neutral background (#fcf9f7). Dark mode keeps the deep orange primary (#251813) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f7snow | #000000black |
| Foreground | #000000black | #faf6f5whitesmoke |
| Card | #fcf9f7snow | #000000black |
| Card foreground | #000000black | #faf6f5whitesmoke |
| Popover | #fcf9f7snow | #000000black |
| Popover foreground | #000000black | #faf6f5whitesmoke |
| Primary | #251813black | #251813black |
| Primary foreground | #cdab9dtan | #cdab9dtan |
| Secondary | #251317black | #251317black |
| Secondary foreground | #cd9da8rosybrown | #cd9da8rosybrown |
| Muted | #eeecedwhitesmoke | #131111black |
| Muted foreground | #6d5f62dimgray | #a09295rosybrown |
| Accent | #252113black | #252113black |
| Accent foreground | #cdc29dtan | #cdc29dtan |
| Destructive | #c41212firebrick | #ea1f1fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #251813black | #251813black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 4.44:1 | AA Large |
Paste this into your globals.css to use Popular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 43.089);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.002 2.136);
--muted-foreground: oklch(0.5 0.019 3.092);
--popover: oklch(0.984 0.004 43.089);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.004 43.089);
--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.225 0.023 42.503);
--primary-foreground: oklch(0.767 0.044 42.719);
--secondary: oklch(0.214 0.03 5.885);
--secondary-foreground: oklch(0.744 0.058 4.142);
--accent: oklch(0.248 0.025 94.492);
--accent-foreground: oklch(0.814 0.051 94.398);
--destructive: oklch(0.521 0.205 28.376);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.225 0.023 42.503);
--chart-1: oklch(0.225 0.023 42.503);
--chart-2: oklch(0.214 0.03 5.885);
--chart-3: oklch(0.248 0.025 94.492);
--chart-4: oklch(0.244 0.037 6.215);
--chart-5: oklch(0.225 0.025 42.457);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 43.091);
--muted: oklch(0.179 0.004 2.621);
--muted-foreground: oklch(0.673 0.018 2.774);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 43.091);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.004 43.091);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.225 0.023 42.503);
--primary-foreground: oklch(0.767 0.044 42.719);
--secondary: oklch(0.214 0.03 5.885);
--secondary-foreground: oklch(0.744 0.058 4.142);
--accent: oklch(0.248 0.025 94.492);
--accent-foreground: oklch(0.814 0.051 94.398);
--destructive: oklch(0.599 0.232 27.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.225 0.023 42.503);
--chart-1: oklch(0.225 0.023 42.503);
--chart-2: oklch(0.214 0.03 5.885);
--chart-3: oklch(0.248 0.025 94.492);
--chart-4: oklch(0.244 0.037 6.215);
--chart-5: oklch(0.225 0.025 42.457);
}