On the regular web (I suppose) we handle “dark mode” with the CSS prefers-color-scheme
media query. But, and to nobody’s surprise, it’s way weirder in the land of HTML email. The weirdness is that across different email clients, they handle the dark mode thing differently, starting with the fact that the email client itself might have its own toggle for dark mode.
Say that toggle has dark mode activated. There are three things that might happen:
- The UI of the app goes dark mode, but it leaves the email alone (e.g. Apple Mail).
- It tries to apply dark mode to your emails as well, but only when it detects areas that are light. Those areas become dark while leaving dark areas alone (e.g. Outlook.com).
- It goes full-bore and force-inverts email colors (e.g. Gmail app on iOS 13).
That last one is wacky-town. As Alice Li says:
This is the most invasive color scheme: it not only inverts the areas with light backgrounds but impacts dark backgrounds as well. So if you already designed your emails to have a dark theme, this scheme will ironically force them to become light.
Emphasis hers.