Primary is a shadcn/ui theme built around a vivid pink primary color (#f91556) with vivid red accents (#f94715). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the vivid pink primary (#f91556) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfcsnow | #000000black |
| Foreground | #0c0306black | #fdfcfcsnow |
| Card | #fdfbfcsnow | #000000black |
| Card foreground | #0c0306black | #fdfcfcsnow |
| Popover | #fdfbfcsnow | #000000black |
| Popover foreground | #0c0306black | #fdfcfcsnow |
| Primary | #f91556crimson | #f91556crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f915c8deeppink | #f915c8deeppink |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0e0eclavender | #1f0f1bblack |
| Muted foreground | #5b575adimgray | #a8a4a7darkgray |
| Accent | #f94715orangered | #f94715orangered |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #612505maroon | #f57732tomato |
| Destructive foreground | #fabe9enavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f91556crimson | #f91556crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 3.51:1 | AA Large |
| Muted text | 5.62:1 | AA |
| Accent | 3.54:1 | AA Large |
| Destructive | 7.25:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 3.51:1 | AA Large |
| Muted text | 7.46:1 | AAA |
| Accent | 3.54:1 | AA Large |
| Destructive | 7.56:1 | AAA |
Paste this into your globals.css to use Primary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 357.777);
--foreground: oklch(0.121 0.021 357.707);
--muted: oklch(0.924 0.023 332.994);
--muted-foreground: oklch(0.463 0.006 332.829);
--popover: oklch(0.991 0.002 357.777);
--popover-foreground: oklch(0.121 0.021 357.707);
--card: oklch(0.991 0.002 357.777);
--card-foreground: oklch(0.121 0.021 357.707);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.629 0.245 15.318);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.667 0.282 340.345);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.652 0.221 34.653);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.349 0.097 43.962);
--destructive-foreground: oklch(0.849 0.082 49.515);
--ring: oklch(0.629 0.245 15.318);
--chart-1: oklch(0.629 0.245 15.318);
--chart-2: oklch(0.667 0.282 340.345);
--chart-3: oklch(0.652 0.221 34.653);
--chart-4: oklch(0.674 0.277 339.63);
--chart-5: oklch(0.634 0.249 15.971);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 357.746);
--muted: oklch(0.197 0.033 335.035);
--muted-foreground: oklch(0.722 0.006 332.739);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 357.746);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 357.746);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.629 0.245 15.318);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.667 0.282 340.345);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.652 0.221 34.653);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.707 0.174 45.613);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.629 0.245 15.318);
--chart-1: oklch(0.629 0.245 15.318);
--chart-2: oklch(0.667 0.282 340.345);
--chart-3: oklch(0.652 0.221 34.653);
--chart-4: oklch(0.674 0.277 339.63);
--chart-5: oklch(0.634 0.249 15.971);
}