Peen is a shadcn/ui theme built around a deep green primary color (#091608) with deep purple accents (#160816). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#091608) on a neutral background (#030803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030803black |
| Foreground | #051505black | #f8fbf8mintcream |
| Card | #fcfcfcsnow | #040b04black |
| Card foreground | #041104black | #fcfdfcwhite |
| Popover | #ffffffwhite | #030803black |
| Popover foreground | #051505black | #f8fbf8mintcream |
| Primary | #091608black | #091608black |
| Primary foreground | #44aa41limegreen | #44aa41limegreen |
| Secondary | #160816black | #160816black |
| Secondary foreground | #cd81cforchid | #cd81cforchid |
| Muted | #ede2eelavender | #1c111dblack |
| Muted foreground | #423d42darkslategray | #c2bdc2silver |
| Accent | #160816black | #160816black |
| Accent foreground | #cd81cforchid | #cd81cforchid |
| Destructive | #601f06maroon | #f4723etomato |
| Destructive foreground | #f9b89flightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #091608black | #091608black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 9.87:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.30:1 | AAA |
Paste this into your globals.css to use Peen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.04 142.758);
--muted: oklch(0.926 0.019 324.751);
--muted-foreground: oklch(0.368 0.011 324.805);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.04 142.758);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.158 0.035 142.743);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.184 0.033 143.307);
--primary-foreground: oklch(0.655 0.173 142.775);
--secondary: oklch(0.164 0.035 325.842);
--secondary-foreground: oklch(0.709 0.137 325.738);
--accent: oklch(0.164 0.035 325.842);
--accent-foreground: oklch(0.709 0.137 325.738);
--destructive: oklch(0.338 0.101 39.377);
--destructive-foreground: oklch(0.837 0.084 42.514);
--ring: oklch(0.184 0.033 143.307);
--chart-1: oklch(0.184 0.033 143.307);
--chart-2: oklch(0.164 0.035 325.842);
--chart-3: oklch(0.164 0.035 325.842);
--chart-4: oklch(0.198 0.049 326.005);
--chart-5: oklch(0.185 0.035 143.214);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.02 143.186);
--foreground: oklch(0.986 0.005 144.585);
--muted: oklch(0.199 0.028 325.462);
--muted-foreground: oklch(0.803 0.009 324.689);
--popover: oklch(0.121 0.02 143.186);
--popover-foreground: oklch(0.986 0.005 144.585);
--card: oklch(0.139 0.023 143.188);
--card-foreground: oklch(0.993 0.003 144.602);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.184 0.033 143.307);
--primary-foreground: oklch(0.655 0.173 142.775);
--secondary: oklch(0.164 0.035 325.842);
--secondary-foreground: oklch(0.709 0.137 325.738);
--accent: oklch(0.164 0.035 325.842);
--accent-foreground: oklch(0.709 0.137 325.738);
--destructive: oklch(0.698 0.173 40.944);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.184 0.033 143.307);
--chart-1: oklch(0.184 0.033 143.307);
--chart-2: oklch(0.164 0.035 325.842);
--chart-3: oklch(0.164 0.035 325.842);
--chart-4: oklch(0.198 0.049 326.005);
--chart-5: oklch(0.185 0.035 143.214);
}