P. \ Yesterday is a shadcn/ui theme built around a vivid red primary color (#f08666) with muted cyan accents (#464f53). The light mode uses a cyan-tinted background (#23282a). Dark mode keeps the vivid red primary (#f08666) on a cyan-tinted background (#23282a).
| Token | Light | Dark |
|---|---|---|
| Background | #23282adarkslategray | #23282adarkslategray |
| Foreground | #f1d5c0wheat | #f1d5c0wheat |
| Card | #1e2224black | #1e2224black |
| Card foreground | #f6e3d5antiquewhite | #f6e3d5antiquewhite |
| Popover | #1c2021black | #1c2021black |
| Popover foreground | #faf1ealinen | #faf1ealinen |
| Primary | #f08666salmon | #f08666salmon |
| Primary foreground | #200a03black | #200a03black |
| Secondary | #53362ddarkolivegreen | #53362ddarkolivegreen |
| Secondary foreground | #e4d3cdlightgrey | #e4d3cdlightgrey |
| Muted | #2b3336darkslategray | #2b3336darkslategray |
| Muted foreground | #a6b4b9darkgray | #a6b4b9darkgray |
| Accent | #464f53darkslategray | #464f53darkslategray |
| Accent foreground | #e3e6e8gainsboro | #e3e6e8gainsboro |
| Destructive | #d93717firebrick | #d93717firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #333333darkslategray | #333333darkslategray |
| Input | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Ring | #f08666salmon | #f08666salmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.69:1 | AAA |
| Text on card | 12.82:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 6.65:1 | AA |
| Destructive | 4.65:1 | AA |
| Text on background | 10.69:1 | AAA |
| Text on card | 12.82:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 6.65:1 | AA |
| Destructive | 4.65:1 | AA |
Paste this into your globals.css to use P. \ Yesterday in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.272 0.008 223.465);
--foreground: oklch(0.892 0.042 59.62);
--muted: oklch(0.314 0.013 223.632);
--muted-foreground: oklch(0.761 0.017 223.376);
--popover: oklch(0.239 0.007 223.441);
--popover-foreground: oklch(0.964 0.014 60.088);
--card: oklch(0.25 0.007 223.45);
--card-foreground: oklch(0.928 0.028 59.87);
--border: oklch(0.321 0 180);
--input: oklch(0.351 0 167.471);
--primary: oklch(0.729 0.138 37.713);
--primary-foreground: oklch(0.18 0.042 41.62);
--secondary: oklch(0.363 0.045 37.653);
--secondary-foreground: oklch(0.879 0.021 37.646);
--accent: oklch(0.422 0.014 223.526);
--accent-foreground: oklch(0.924 0.004 223.173);
--destructive: oklch(0.583 0.203 32.814);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.138 37.713);
--chart-1: oklch(0.729 0.138 37.713);
--chart-2: oklch(0.363 0.045 37.653);
--chart-3: oklch(0.422 0.014 223.526);
--chart-4: oklch(0.392 0.05 37.657);
--chart-5: oklch(0.73 0.143 37.708);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.272 0.008 223.465);
--foreground: oklch(0.892 0.042 59.62);
--muted: oklch(0.314 0.013 223.632);
--muted-foreground: oklch(0.761 0.017 223.376);
--popover: oklch(0.239 0.007 223.441);
--popover-foreground: oklch(0.964 0.014 60.088);
--card: oklch(0.25 0.007 223.45);
--card-foreground: oklch(0.928 0.028 59.87);
--border: oklch(0.321 0 180);
--input: oklch(0.351 0 167.471);
--primary: oklch(0.729 0.138 37.713);
--primary-foreground: oklch(0.18 0.042 41.62);
--secondary: oklch(0.363 0.045 37.653);
--secondary-foreground: oklch(0.879 0.021 37.646);
--accent: oklch(0.422 0.014 223.526);
--accent-foreground: oklch(0.924 0.004 223.173);
--destructive: oklch(0.583 0.203 32.814);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.729 0.138 37.713);
--chart-1: oklch(0.729 0.138 37.713);
--chart-2: oklch(0.363 0.045 37.653);
--chart-3: oklch(0.422 0.014 223.526);
--chart-4: oklch(0.392 0.05 37.657);
--chart-5: oklch(0.73 0.143 37.708);
}