Pear Spritz Marten is a shadcn/ui theme built around a vivid green primary color (#cdf463) with near-white accents (#f4f4f5). The light mode uses a cyan-tinted background (#eff3f4). Dark mode switches to a green primary (#22c55e) on an orange-tinted background (#0c0a09).
| Token | Light | Dark |
|---|---|---|
| Background | #eff3f4whitesmoke | #0c0a09black |
| Foreground | #181d19black | #f2f2f2whitesmoke |
| Card | #ffffffwhite | #1c1917black |
| Card foreground | #09090bblack | #f2f2f2whitesmoke |
| Popover | #ffffffwhite | #171717black |
| Popover foreground | #09090bblack | #f2f2f2whitesmoke |
| Primary | #cdf463khaki | #22c55emediumseagreen |
| Primary foreground | #181d19black | #052e16black |
| Secondary | #f4f4f5whitesmoke | #27272adarkslategray |
| Secondary foreground | #18181bblack | #fafafasnow |
| Muted | #f4f4f5whitesmoke | #262626darkslategray |
| Muted foreground | #71717adimgray | #a1a1aadarkgray |
| Accent | #f4f4f5whitesmoke | #292524darkslategray |
| Accent foreground | #18181bblack | #fafafasnow |
| Destructive | #ffebeblinen | #7f1d1dmaroon |
| Destructive foreground | #e00016red | #fef2f2lavenderblush |
| Border | #e4e4e7gainsboro | #27272adarkslategray |
| Input | #e4e4e7gainsboro | #27272adarkslategray |
| Ring | #aac9fflightblue | #15803dforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.30:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 13.60:1 | AAA |
| Secondary button | 16.12:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 4.38:1 | AA Large |
| Text on background | 17.65:1 | AAA |
| Text on card | 15.62:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 14.26:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 14.53:1 | AAA |
| Destructive | 9.15:1 | AAA |
Paste this into your globals.css to use Pear Spritz Marten in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.961 0.004 214.329);
--foreground: oklch(0.224 0.011 151.267);
--muted: oklch(0.968 0.001 286.375);
--muted-foreground: oklch(0.552 0.014 285.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.004 285.824);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.004 285.824);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--primary: oklch(0.911 0.176 122.635);
--primary-foreground: oklch(0.224 0.011 151.267);
--secondary: oklch(0.968 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.883);
--accent: oklch(0.968 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.883);
--destructive: oklch(0.956 0.022 18.717);
--destructive-foreground: oklch(0.571 0.233 27.268);
--ring: oklch(0.832 0.083 261.387);
--chart-1: oklch(0.911 0.176 122.635);
--chart-2: oklch(0.968 0.001 286.375);
--chart-3: oklch(0.968 0.001 286.375);
--chart-4: oklch(0.991 0 286.393);
--chart-5: oklch(0.918 0.18 122.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.004 49.314);
--foreground: oklch(0.962 0 180);
--muted: oklch(0.27 0 180);
--muted-foreground: oklch(0.712 0.013 286.068);
--popover: oklch(0.204 0 180);
--popover-foreground: oklch(0.962 0 180);
--card: oklch(0.216 0.006 56.043);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.274 0.005 286.033);
--input: oklch(0.274 0.005 286.033);
--primary: oklch(0.723 0.192 149.583);
--primary-foreground: oklch(0.266 0.063 152.948);
--secondary: oklch(0.274 0.005 286.033);
--secondary-foreground: oklch(0.985 0 180);
--accent: oklch(0.269 0.006 34.297);
--accent-foreground: oklch(0.985 0 180);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.971 0.013 17.376);
--ring: oklch(0.527 0.137 150.055);
--chart-1: oklch(0.723 0.192 149.583);
--chart-2: oklch(0.274 0.005 286.033);
--chart-3: oklch(0.269 0.006 34.297);
--chart-4: oklch(0.304 0.006 286.017);
--chart-5: oklch(0.731 0.198 149.264);
}