Technical resources · Free builder
prefers-color-scheme, forced inversion, the transparent-logo rule, and a dark-mode-friendly palette that holds up in Apple Mail, Outlook and Gmail.
Clients that support dark mode fall into two groups. Some declare `color-scheme: light dark` and let your CSS react through `@media (prefers-color-scheme: dark)`. Others ignore the media query entirely and apply a transformation to the rendered output — partial colour inversion, brightness reduction, or a full repaint of light backgrounds.
You cannot detect which strategy the client uses from inside the message, and you cannot rely on JavaScript. The only robust position is a design that is acceptable under both, plus explicit declarations for the clients that do follow your CSS.
A block with no background color is exactly the block that inversion engines mangle. Setting an explicit background on the outer table gives supporting clients a deterministic value and removes the most common failure where a white area is repainted black while the text stays dark.
<!-- Declare the scheme and give the container an explicit background -->
<style>
:root { color-scheme: light dark; supported-color-schemes: light dark; }
@media (prefers-color-scheme: dark) {
.zign-signature { background:#1c1c1e !important; }
.zign-body { color:#e6e6ea !important; }
.zign-muted { color:#a1a1aa !important; }
}
</style>
<table class="zign-signature" cellpadding="0" cellspacing="0" border="0"
style="border-collapse:collapse;background:#ffffff;">
<tbody><tr><td class="zign-body" style="color:#202020;">…</td></tr></tbody>
</table>#000000 text is the value inversion engines push hardest toward maximum contrast, and it is also the value that produces halation for readers with astigmatism. #202020 or #4b5563 reads as black on a light background and as comfortable grey on a dark one.
The same applies in reverse: prefer #e6e6ea over #ffffff in dark-mode rules so the signature does not glare.
This is the highest-impact fix and it cannot be solved with CSS. A JPEG or a PNG with a baked-in white background will always render as a bright rectangle in a dark interface. Use an SVG, or a PNG with real alpha transparency, and check the artwork against both a white and a near-black background before publishing it.
If the brand mark is dark-on-transparent, it will be invisible on black. In that case prepare a light variant and reference it from the dark-mode rule, or place the mark on a small persistent chip with its own background color.
Accents for the role line, icons and links should sit in the middle of the luminance range. Blue, violet, teal and magenta at roughly 500-level saturation stay legible on both backgrounds. Very light pastels vanish on white; very dark shades vanish on black.
Keep one accent for the whole signature. If a client shifts the hue slightly during inversion, a single-color scheme still reads as one design, whereas several competing accents start to look broken.
At minimum, check Apple Mail on macOS and iOS in dark mode, Outlook on the web in dark mode, and Gmail on Android with the system theme set to dark. Those three cover both mechanisms — media query support and forced inversion — and any issue you see there will reproduce almost everywhere else.