P. \ Dark is a shadcn/ui theme built around an orange primary color (#ba9c6d) with neutral gray accents (#363a3a). The light mode uses a neutral background (#111212). Dark mode keeps the orange primary (#ba9c6d) on a neutral background (#111212).
| Token | Light | Dark |
|---|---|---|
| Background | #111212black | #111212black |
| Foreground | #dfc5b9lightgrey | #dfc5b9lightgrey |
| Card | #0c0d0dblack | #0c0d0dblack |
| Card foreground | #e7d4cblightgrey | #e7d4cblightgrey |
| Popover | #0a0b0bblack | #0a0b0bblack |
| Popover foreground | #efe2dcantiquewhite | #efe2dcantiquewhite |
| Primary | #ba9c6ddarkkhaki | #ba9c6ddarkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #50432fdarkolivegreen | #50432fdarkolivegreen |
| Secondary foreground | #e3dbcfgainsboro | #e3dbcfgainsboro |
| Muted | #222b2bdarkslategray | #222b2bdarkslategray |
| Muted foreground | #9bb0b0darkgray | #9bb0b0darkgray |
| Accent | #363a3adarkslategray | #363a3adarkslategray |
| Accent foreground | #d0d2d2lightgrey | #d0d2d2lightgrey |
| Destructive | #fb5032tomato | #fb5032tomato |
| Destructive foreground | #000000black | #000000black |
| Border | #1f1f1fblack | #1f1f1fblack |
| Input | #262626darkslategray | #262626darkslategray |
| Ring | #ba9c6ddarkkhaki | #ba9c6ddarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.42:1 | AAA |
| Text on card | 13.58:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.38:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 11.42:1 | AAA |
| Text on card | 13.58:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.38:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use P. \ Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.183 0.002 197.006);
--foreground: oklch(0.842 0.034 46.448);
--muted: oklch(0.28 0.013 196.444);
--muted-foreground: oklch(0.742 0.024 196.652);
--popover: oklch(0.146 0.001 197.043);
--popover-foreground: oklch(0.922 0.016 46.663);
--card: oklch(0.159 0.001 197.028);
--card-foreground: oklch(0.882 0.025 46.558);
--border: oklch(0.238 0 161.565);
--input: oklch(0.27 0 180);
--primary: oklch(0.708 0.072 77.291);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.391 0.036 77.476);
--secondary-foreground: oklch(0.894 0.018 78.235);
--accent: oklch(0.344 0.005 196.943);
--accent-foreground: oklch(0.863 0.003 197.101);
--destructive: oklch(0.666 0.212 32.381);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.708 0.072 77.291);
--chart-1: oklch(0.708 0.072 77.291);
--chart-2: oklch(0.391 0.036 77.476);
--chart-3: oklch(0.344 0.005 196.943);
--chart-4: oklch(0.422 0.04 77.446);
--chart-5: oklch(0.712 0.078 77.128);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.183 0.002 197.006);
--foreground: oklch(0.842 0.034 46.448);
--muted: oklch(0.28 0.013 196.444);
--muted-foreground: oklch(0.742 0.024 196.652);
--popover: oklch(0.146 0.001 197.043);
--popover-foreground: oklch(0.922 0.016 46.663);
--card: oklch(0.159 0.001 197.028);
--card-foreground: oklch(0.882 0.025 46.558);
--border: oklch(0.238 0 161.565);
--input: oklch(0.27 0 180);
--primary: oklch(0.708 0.072 77.291);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.391 0.036 77.476);
--secondary-foreground: oklch(0.894 0.018 78.235);
--accent: oklch(0.344 0.005 196.943);
--accent-foreground: oklch(0.863 0.003 197.101);
--destructive: oklch(0.666 0.212 32.381);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.708 0.072 77.291);
--chart-1: oklch(0.708 0.072 77.291);
--chart-2: oklch(0.391 0.036 77.476);
--chart-3: oklch(0.344 0.005 196.943);
--chart-4: oklch(0.422 0.04 77.446);
--chart-5: oklch(0.712 0.078 77.128);
}