The one layout every message we send uses: what palette it flattens to, whether it ships its own dark version, and which green is allowed to carry text.
Audit
32 messages in the catalog, 30 with an HTML body, all through one layout — lib/modules/email/email.layout.tsx.
Already right
Findings
A mail client that is not told a message has a dark version builds one itself, and each client does it differently.
Declare color-scheme: light dark, ship a prefers-color-scheme block and a [data-ogsc] copy of it for Outlook.com.
Light inbox
Dark inbox
One palette, color-scheme: light. The message stays light in a dark inbox.
Light inbox
Dark inbox
Both options ship a dark version; they differ in which palette gets frozen to hex.
gray-0/3/7/9 and dark-0/2/4/7/9 for neutrals, green-6 and green-4 for brand: the same colours the app renders, written as hex.
Light inbox
Dark inbox
The slate-and-Tailwind-green values the templates already carry.
Light inbox
Dark inbox
Links and the button label are body-sized text, so they need 4.5:1. Mantine's ramp stops just short of it.
| Green | On white | Verdict |
|---|---|---|
| Mantine green-6 `#40c057` | 2.36:1 | Fails. Reads as a pale wash on white. |
| Mantine green-9 `#2b8a3e` | 4.37:1 | Fails, narrowly — the end of Mantine's own ramp. |
| Email ink `#29833b` | 4.77:1 | Passes. Mantine green-9, darkened 5%. |
| Shipped ink `#15803d` | 5.02:1 | Passes. Tailwind green-700, off the Mantine hue. |
Option A — email ink #29833b
An email-only ink step in the Mantine hue. Option B kept the Tailwind green already shipped (#15803d) — it passes too, but it leaves email green subtly off the app's. Option C kept the canon ramp untouched and failed the contrast floor.
Shared rules
These come out of the research, not out of the options.
Axis 1 — we author dark mode
Axis 2 — email flattens the Mantine canon
Axis 3 — email ink #29833b
Design system for a freelance job-alert app. App copies are downstream.