P. \ Ox is a shadcn/ui theme built around a vivid red primary color (#ff6652) with deep red accents (#542129). The light mode uses a red-tinted background (#1d0b0e). Dark mode keeps the vivid red primary (#ff6652) on a red-tinted background (#1d0b0e).
| Token | Light | Dark |
|---|---|---|
| Background | #1d0b0eblack | #1d0b0eblack |
| Foreground | #ecb088burlywood | #ecb088burlywood |
| Card | #16090bblack | #16090bblack |
| Card foreground | #f0bf9eburlywood | #f0bf9eburlywood |
| Popover | #120709black | #120709black |
| Popover foreground | #f3cdb4wheat | #f3cdb4wheat |
| Primary | #ff6652tomato | #ff6652tomato |
| Primary foreground | #1f0400black | #1f0400black |
| Secondary | #53312ddarkslategray | #53312ddarkslategray |
| Secondary foreground | #e4d0cdlightgrey | #e4d0cdlightgrey |
| Muted | #2b2223darkslategray | #2b2223darkslategray |
| Muted foreground | #b09b9edarkgray | #b09b9edarkgray |
| Accent | #542129maroon | #542129maroon |
| Accent foreground | #e7c1c6thistle | #e7c1c6thistle |
| Destructive | #f53319orangered | #f53319orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2c1619black | #2c1619black |
| Input | #371b1fblack | #371b1fblack |
| Ring | #ff6652tomato | #ff6652tomato |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.03:1 | AAA |
| Text on card | 11.75:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.90:1 | AA Large |
| Text on background | 10.03:1 | AAA |
| Text on card | 11.75:1 | AAA |
| Primary button | 6.75:1 | AA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use P. \ Ox in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.18 0.031 11.124);
--foreground: oklch(0.804 0.089 54.769);
--muted: oklch(0.262 0.014 7.95);
--muted-foreground: oklch(0.709 0.026 7.498);
--popover: oklch(0.148 0.021 9.11);
--popover-foreground: oklch(0.875 0.055 55.562);
--card: oklch(0.159 0.024 10.263);
--card-foreground: oklch(0.839 0.072 55.211);
--border: oklch(0.233 0.037 10.681);
--input: oklch(0.262 0.044 10.966);
--primary: oklch(0.701 0.191 30.106);
--primary-foreground: oklch(0.159 0.053 37.702);
--secondary: oklch(0.354 0.05 28.006);
--secondary-foreground: oklch(0.873 0.023 26.635);
--accent: oklch(0.325 0.077 13.178);
--accent-foreground: oklch(0.844 0.044 7.897);
--destructive: oklch(0.63 0.231 31.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.701 0.191 30.106);
--chart-1: oklch(0.701 0.191 30.106);
--chart-2: oklch(0.354 0.05 28.006);
--chart-3: oklch(0.325 0.077 13.178);
--chart-4: oklch(0.381 0.055 28.049);
--chart-5: oklch(0.702 0.196 30.216);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.18 0.031 11.124);
--foreground: oklch(0.804 0.089 54.769);
--muted: oklch(0.262 0.014 7.95);
--muted-foreground: oklch(0.709 0.026 7.498);
--popover: oklch(0.148 0.021 9.11);
--popover-foreground: oklch(0.875 0.055 55.562);
--card: oklch(0.159 0.024 10.263);
--card-foreground: oklch(0.839 0.072 55.211);
--border: oklch(0.233 0.037 10.681);
--input: oklch(0.262 0.044 10.966);
--primary: oklch(0.701 0.191 30.106);
--primary-foreground: oklch(0.159 0.053 37.702);
--secondary: oklch(0.354 0.05 28.006);
--secondary-foreground: oklch(0.873 0.023 26.635);
--accent: oklch(0.325 0.077 13.178);
--accent-foreground: oklch(0.844 0.044 7.897);
--destructive: oklch(0.63 0.231 31.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.701 0.191 30.106);
--chart-1: oklch(0.701 0.191 30.106);
--chart-2: oklch(0.354 0.05 28.006);
--chart-3: oklch(0.325 0.077 13.178);
--chart-4: oklch(0.381 0.055 28.049);
--chart-5: oklch(0.702 0.196 30.216);
}