P. \ Crimson is a shadcn/ui theme built around a vivid red primary color (#ed123a) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#ed123a) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Card | #fafafasnow | #fafafasnow |
| Card foreground | #1f1f1fblack | #1f1f1fblack |
| Popover | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Popover foreground | #121212black | #121212black |
| Primary | #ed123acrimson | #ed123acrimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2acb3silver | #d2acb3silver |
| Secondary foreground | #321b1fblack | #321b1fblack |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Accent foreground | #404040darkslategray | #404040darkslategray |
| Destructive | #ca2002firebrick | #ca2002firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Input | #ebebeblinen | #ebebeblinen |
| Ring | #ed123acrimson | #ed123acrimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.15:1 | AAA |
| Text on card | 15.77:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 14.15:1 | AAA |
| Text on card | 15.77:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 5.64:1 | AA |
Paste this into your globals.css to use P. \ Crimson in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.29 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.182 0 164.055);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.238 0 161.565);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.602 0.237 21.728);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.781 0.045 5.826);
--secondary-foreground: oklch(0.254 0.037 8.148);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.538 0.205 31.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.602 0.237 21.728);
--chart-1: oklch(0.602 0.237 21.728);
--chart-2: oklch(0.781 0.045 5.826);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.807 0.04 5.587);
--chart-5: oklch(0.608 0.241 22.362);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.29 0 180);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0.182 0 164.055);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0.238 0 161.565);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.602 0.237 21.728);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.781 0.045 5.826);
--secondary-foreground: oklch(0.254 0.037 8.148);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.538 0.205 31.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.602 0.237 21.728);
--chart-1: oklch(0.602 0.237 21.728);
--chart-2: oklch(0.781 0.045 5.826);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.807 0.04 5.587);
--chart-5: oklch(0.608 0.241 22.362);
}