Press is a shadcn/ui theme built around a green primary color (#88e170) with green accents (#70e190). The light mode uses a neutral background (#f9fbf8). Dark mode keeps the green primary (#88e170) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fbf8mintcream | #020401black |
| Foreground | #050d03black | #f9fbf9mintcream |
| Card | #f9fbf8mintcream | #020401black |
| Card foreground | #050d03black | #f9fbf9mintcream |
| Popover | #f9fbf8mintcream | #020401black |
| Popover foreground | #050d03black | #f9fbf9mintcream |
| Primary | #88e170lightgreen | #88e170lightgreen |
| Primary foreground | #0a1905black | #0a1905black |
| Secondary | #c1e170darkkhaki | #c1e170darkkhaki |
| Secondary foreground | #141905black | #141905black |
| Muted | #eaebe5linen | #181a14black |
| Muted foreground | #4f553fdarkolivegreen | #bac0aasilver |
| Accent | #70e190mediumaquamarine | #70e190mediumaquamarine |
| Accent foreground | #05190bblack | #05190bblack |
| Destructive | #712e0asaddlebrown | #ed7331tomato |
| Destructive foreground | #f8ccb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #88e170lightgreen | #88e170lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 11.28:1 | AAA |
| Secondary button | 12.14:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 11.14:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 11.28:1 | AAA |
| Secondary button | 12.14:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 11.14:1 | AAA |
| Destructive | 7.07:1 | AAA |
Paste this into your globals.css to use Press in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 138.892);
--foreground: oklch(0.144 0.03 137.008);
--muted: oklch(0.938 0.009 119.476);
--muted-foreground: oklch(0.437 0.036 120.741);
--popover: oklch(0.987 0.005 138.892);
--popover-foreground: oklch(0.144 0.03 137.008);
--card: oklch(0.987 0.005 138.892);
--card-foreground: oklch(0.144 0.03 137.008);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.828 0.171 139.204);
--primary-foreground: oklch(0.194 0.044 138.572);
--secondary: oklch(0.862 0.144 122.528);
--secondary-foreground: oklch(0.203 0.037 122.469);
--accent: oklch(0.822 0.154 150.935);
--accent-foreground: oklch(0.193 0.039 151.259);
--destructive: oklch(0.389 0.105 44.194);
--destructive-foreground: oklch(0.877 0.06 49.851);
--ring: oklch(0.828 0.171 139.204);
--chart-1: oklch(0.828 0.171 139.204);
--chart-2: oklch(0.862 0.144 122.528);
--chart-3: oklch(0.822 0.154 150.935);
--chart-4: oklch(0.873 0.133 122.169);
--chart-5: oklch(0.833 0.178 139.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.015 137.385);
--foreground: oklch(0.986 0.003 138.892);
--muted: oklch(0.215 0.013 120.387);
--muted-foreground: oklch(0.797 0.031 119.982);
--popover: oklch(0.098 0.015 137.385);
--popover-foreground: oklch(0.986 0.003 138.892);
--card: oklch(0.098 0.015 137.385);
--card-foreground: oklch(0.986 0.003 138.892);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.828 0.171 139.204);
--primary-foreground: oklch(0.194 0.044 138.572);
--secondary: oklch(0.862 0.144 122.528);
--secondary-foreground: oklch(0.203 0.037 122.469);
--accent: oklch(0.822 0.154 150.935);
--accent-foreground: oklch(0.193 0.039 151.259);
--destructive: oklch(0.689 0.17 45.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.828 0.171 139.204);
--chart-1: oklch(0.828 0.171 139.204);
--chart-2: oklch(0.862 0.144 122.528);
--chart-3: oklch(0.822 0.154 150.935);
--chart-4: oklch(0.873 0.133 122.169);
--chart-5: oklch(0.833 0.178 139.235);
}