EML-47Recommended
Plan for dark mode
Design for clients that switch to dark mode, so text stays readable and logos stay visible.
How to do it
Declare support with <meta name="color-scheme" content="light dark"> and <meta name="supported-color-schemes" content="light dark">. Add prefers-color-scheme styles where clients support them, such as Apple Mail. Other clients invert colours on their own. Avoid pure black on pure white, and give dark logos a light outline that works on both. Web pages handle the same switch in Support light and dark from the start.
Examples
HTML example
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<style>
@media (prefers-color-scheme: dark) {
.body { background:#14172e !important; color:#f5f7ff !important; }
}
</style>
How to check
Send a test to Apple Mail, Gmail and Outlook with dark mode on. All text stays readable, and logos and icons stay visible.
Sources
Related rules
- WEB-10 Support light and dark from the start in Website
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/layout-and-accessibility/email-dark-mode">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.