P. \ Emerald is a shadcn/ui theme built around a vivid green primary color (#07a649) with deep teal accents (#1f513b). The light mode uses a teal-tinted background (#0a1a13). Dark mode keeps the vivid green primary (#07a649) on a teal-tinted background (#0a1a13).
| Token | Light | Dark |
|---|---|---|
| Background | #0a1a13black | #0a1a13black |
| Foreground | #fad5b7peachpuff | #fad5b7peachpuff |
| Card | #07120dblack | #07120dblack |
| Card foreground | #fce3cfblanchedalmond | #fce3cfblanchedalmond |
| Popover | #060f0bblack | #060f0bblack |
| Popover foreground | #fdf1e7linen | #fdf1e7linen |
| Primary | #07a649seagreen | #07a649seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acd2bcsilver | #acd2bcsilver |
| Secondary foreground | #1b3224darkslategray | #1b3224darkslategray |
| Muted | #222b27darkslategray | #222b27darkslategray |
| Muted foreground | #9bb0a7darkgray | #9bb0a7darkgray |
| Accent | #1f513bdarkslategray | #1f513bdarkslategray |
| Accent foreground | #bde5d4powderblue | #bde5d4powderblue |
| Destructive | #fd3e30tomato | #fd3e30tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #142920black | #142920black |
| Input | #193328darkslategray | #193328darkslategray |
| Ring | #07a649seagreen | #07a649seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.07:1 | AAA |
| Text on card | 15.42:1 | AAA |
| Primary button | 3.18:1 | AA Large |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 3.56:1 | AA Large |
| Text on background | 13.07:1 | AAA |
| Text on card | 15.42:1 | AAA |
| Primary button | 3.18:1 | AA Large |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use P. \ Emerald in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.2 0.026 164.327);
--foreground: oklch(0.898 0.057 61.279);
--muted: oklch(0.278 0.015 167.16);
--muted-foreground: oklch(0.739 0.027 167.665);
--popover: oklch(0.156 0.017 166.9);
--popover-foreground: oklch(0.965 0.019 61.934);
--card: oklch(0.171 0.02 165.467);
--card-foreground: oklch(0.931 0.038 61.636);
--border: oklch(0.26 0.032 164.565);
--input: oklch(0.297 0.039 164.288);
--primary: oklch(0.635 0.177 149.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.831 0.051 159.478);
--secondary-foreground: oklch(0.292 0.038 157.394);
--accent: oklch(0.394 0.065 162.474);
--accent-foreground: oklch(0.889 0.048 167.111);
--destructive: oklch(0.653 0.228 29.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.177 149.255);
--chart-1: oklch(0.635 0.177 149.255);
--chart-2: oklch(0.831 0.051 159.478);
--chart-3: oklch(0.394 0.065 162.474);
--chart-4: oklch(0.851 0.045 159.712);
--chart-5: oklch(0.642 0.18 148.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.2 0.026 164.327);
--foreground: oklch(0.898 0.057 61.279);
--muted: oklch(0.278 0.015 167.16);
--muted-foreground: oklch(0.739 0.027 167.665);
--popover: oklch(0.156 0.017 166.9);
--popover-foreground: oklch(0.965 0.019 61.934);
--card: oklch(0.171 0.02 165.467);
--card-foreground: oklch(0.931 0.038 61.636);
--border: oklch(0.26 0.032 164.565);
--input: oklch(0.297 0.039 164.288);
--primary: oklch(0.635 0.177 149.255);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.831 0.051 159.478);
--secondary-foreground: oklch(0.292 0.038 157.394);
--accent: oklch(0.394 0.065 162.474);
--accent-foreground: oklch(0.889 0.048 167.111);
--destructive: oklch(0.653 0.228 29.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.635 0.177 149.255);
--chart-1: oklch(0.635 0.177 149.255);
--chart-2: oklch(0.831 0.051 159.478);
--chart-3: oklch(0.394 0.065 162.474);
--chart-4: oklch(0.851 0.045 159.712);
--chart-5: oklch(0.642 0.18 148.986);
}