September 20, 2024
It’s a subject that’s been maintaining e mail geeks up at evening for years now… Darkish mode e mail design and improvement. As for those who didn’t have sufficient to cope with relating to e mail rendering.
Darkish mode throws yet one more wrench within the gears of e mail improvement. Nonetheless, if what you’re doing, you possibly can optimize the inbox expertise for each gentle and darkish mode emails.
When you’re ignoring darkish mode, it’s probably that a few of your subscribers are opening your HTML e mail designs solely to seek out an unreadable mess. So, let’s shed some gentle on this shadowy topic and discover how one can create emails that look nice, irrespective of the mode.
What’s darkish mode anyway?
Darkish mode is a show setting that may be turned on and off for a lot of gadgets, purposes, and working techniques. Basically, it adjustments the person interface in order that as a substitute of seeing the normal darkish textual content on a lightweight background, there’s gentle textual content on a darkish background.
So a background with hex code #FFFFFF and textual content coloration hex code of #000000 switches.
In darkish mode, the background hex code turns into #000000 and the textual content hex code switches to #FFFFFF.
Right here’s how that may look when viewing an e mail in gentle or darkish mode on a cellular gadget:


Darkish mode UI was the norm again within the ‘70s not lengthy after e mail was invented. Image these previous, boxy PCs with black screens and glowing inexperienced textual content. Gentle mode ultimately grew to become the usual together with LCD screens within the ‘90s.
Twitter and YouTube have been among the many first widespread companies to supply darkish mode. In 2019, Microsoft, Google, and Apple adopted the development and commenced offerring darkish or “evening mode” choices for his or her applications and working techniques.
In 2023, Twitter/X made the transfer to make its darkish mode UI the default. At first, Elon Musk mentioned it might be the solely possibility. Apparently, he believes darkish mode is “higher in each means.” However backlash from customers prompted the corporate to convey again a lightweight mode setting for the platform.
As soon as Gmail, Apple Mail, and Outlook began providing darkish mode, e mail entrepreneurs started paying consideration too. Right here’s how an previous E mail on Acid publication appeared once we first began testing our personal stuff in darkish mode 4 years in the past. It’s not horrible. But it surely’s not superb both.




Why darkish mode issues in e mail
Bear in mind when darkish mode was only a area of interest choice? These days are lengthy gone. Darkish mode has quickly turn out to be a mainstream characteristic, with latest research exhibiting that a good portion of customers favor darkish mode for no less than a few of their digital interactions.
In fact, these research on client utilization of darkish mode settings fluctuate. What you actually wish to know is how lots of the contacts on your listing are opening messages in darkish mode. Superior E mail Analytics from Sinch E mail on Acid allow you to do precisely that. Discover out extra about monitoring darkish mode opens on our platform.
However we digress… Why do individuals love darkish mode a lot? Let’s break it down:
- Eye consolation: Many customers discover darkish mode simpler on the eyes, particularly in low-light situations. This may be notably helpful for many who examine their emails late at evening or very first thing within the morning.
- Lowered blue gentle exposure: Some research counsel that lowering publicity to blue gentle, particularly within the night, can assist with sleep patterns. Darkish mode is a technique customers attempt to obtain this.
- Battery life: For gadgets with OLED screens, darkish mode can considerably prolong battery life. It’s because OLED screens can flip off particular person pixels when displaying black, consuming much less energy.
- Aesthetic choice: Let’s face it, some individuals simply assume darkish mode appears cool. It may give a smooth, trendy really feel to interfaces.
- Lowered display glare: In sure lighting situations, darkish mode can assist cut back display glare, making it simpler to learn content material.
Regardless of the cause, there’s a very good probability a good portion of your subscribers are viewing your emails in darkish mode. As e mail professionals, it’s our job to make sure our messages look nice in each gentle and darkish environments.
The challenges of darkish mode emails
Earlier than we bounce into options, let’s break down the primary challenges of darkish mode emails. Understanding these hurdles is step one in overcoming them:
Colour inversion in darkish mode: When your design flips
One of many major challenges with darkish mode is coloration inversion. Many e mail shoppers mechanically invert colours when switching to darkish mode, turning gentle backgrounds darkish and darkish textual content gentle. Whereas this sounds easy in concept, in follow it may result in some surprising outcomes:
- Your rigorously chosen coloration scheme may be utterly altered, affecting the general feel and appear of your e mail.
- Necessary design parts, like buttons or call-to-action areas, may lose their affect or turn out to be tough to differentiate.
- Delicate coloration variations that labored effectively in gentle mode may turn out to be indistinguishable in darkish mode.
On this instance, purple could also be a major model coloration you employ for calls-to-action in emails. However the inverted inexperienced button could not suit your model in any respect.


Model consistency in darkish mode: Brand visibility points
Your model’s visible id is essential in e mail advertising. Nonetheless, darkish mode can mess up your e mail branding efforts:
- Logos designed to face out on a lightweight background may all of the sudden turn out to be invisible on a darkish background.
- Model colours rigorously chosen for gentle backgrounds may conflict or turn out to be unreadable when inverted.
- The general “really feel” of your e mail may shift dramatically, probably disconnecting it out of your model’s standard aesthetic.
Right here’s what can occur in case your brand isn’t optimized for viewing emails in darkish mode:




For a bunch of choices on how one can deal with this, take a look at our tips about fixing darkish mode brand issues.
Accessibility and darkish mode: Surprising distinction points
Whereas darkish mode can profit some customers with visible impairments, it may additionally create surprising e mail accessibility points:
- Colour contrasts that labored completely in gentle mode may turn out to be problematic in darkish mode.
- Textual content that was simply readable on a lightweight background may turn out to be strained on a darkish background, particularly if the font weight isn’t adjusted.
- Necessary visible cues or separators may disappear or turn out to be much less noticeable in darkish mode.
E mail shoppers and darkish mode rendering
Like standard on this planet of e mail improvement, it’s by no means so simple as having a darkish mode and non-dark mode, all e mail shoppers that characteristic darkish mode will deal with it barely in a different way.
As defined on this wonderful article from our buddies at Parcel, you possibly can break down the totally different darkish modes to a few totally different modes; full inversion, partial inversion and no change.
Full inversion will change each your font colours and your backgrounds, partial inversion could be very related however will largely go away your backgrounds untouched, no change received’t inverse any of your content material.
E mail Consumer | Auto-Inverts Colours? | Widespread Darkish Mode Problem |
---|---|---|
Apple Mail (iPhone/iPad) | Sure | Auto inverts when the background is clear or pure white (#ffffff). |
Apple Mail (macOS) | Sure | Auto inverts when the background is clear or pure white (#ffffff). |
Outlook (iOS) | Partially | Could make background coloration darker. |
Outlook (macOS) | Partially | The one Outlook possibility that does assist @media (prefers-color-scheme). Could make background coloration darker. |
Outlook (Home windows) | Sure | The one Outlook possibility that persistently auto-inverts colours. |
Outlook.com (webmail) | Partially | The one Outlook possibility the place picture swap works. Could make background coloration darker. |
Gmail (Android) | Sure (when not already darkish) | Doesn’t assist the question @media (prefers-color-scheme). |
Gmail (webmail) | No | Doesn’t assist the question @media (prefers-color-scheme). |
AOL (webmail) | No | No present darkish mode person interface. |
Yahoo! (webmail/app) | No | Doesn’t assist the question @media (prefers-color-scheme). |
Apple Mail and darkish mode
In Apple Mail’s darkish mode, it tends to invert pure black (#000000) and pure white hex (#FFFFFF) codes. Apple Mail will utterly disregard distinction or other-such guidelines you probably have these hex codes and invert them regardless.
We advise to decide on barely totally different hex codes, comparable to #000001 or #FFFFFE, the distinction in coloration is just not noticeable and it’ll allow you to keep away from any surprises.
Gmail and darkish mode
As is usually the case, Gmail can usually throw a little bit of a curveball relating to the way it handles our darkish mode emails, just because there are such a lot of variations of Gmail, starting from iOS to Android to common previous Gmail, nailing down an answer might be fairly robust. Previewing your campaigns in darkish mode on Gmail helps you perceive how one can construct the most effective expertise for these subscribers.
When you’re scuffling with Gmail on iOS darkish mode, you possibly can do that insanely intelligent resolution by Rémi Parmentier, using blends (which are supported in Gmail) to regulate how your e mail appears when darkish mode has its means.
Outlook and darkish mode
Ahh, now we get to it, the elephant within the room; Outlook. One vital subject is how Outlook handles coloration inversions. In darkish mode, the place backgrounds turn out to be darkish and textual content turns into gentle, Outlook may wrestle to precisely invert colours, resulting in surprising and generally undesirable outcomes. This can lead to poor readability, visible inconsistencies, and an general less-than-ideal person expertise.
Moreover, Outlook’s darkish mode implementation may not absolutely align with commonplace improvement practices, introducing quirks and challenges for e mail builders. These points can vary from the rendering of background photos to the dealing with of sure kinds, making it essential for e mail designers to make use of particular methods to make sure their emails look as meant in Outlook’s darkish mode.
When you’re struggling to get textual content readable in Outlook, Nicole Merlin has an incredible information on tackling font colours in Outlook’s Darkish Mode, includin
Illuminating options for darkish mode emails
Now that we’ve outlined the challenges, let’s dive into some methods that will help you navigate the murky waters of darkish mode e mail design:
Setting the stage for darkish mode: Meta tags and CSS
Step one in creating darkish mode-friendly emails is to inform e mail shoppers that your e mail helps each gentle and darkish modes. You are able to do this by including particular meta tags to the
part of your e mail:
These meta tags primarily say, “Hey, e mail consumer! This e mail is designed to work in each gentle and darkish modes.”
To enrich these meta tags, you also needs to embody the next in your CSS:
This CSS reinforces the message that your e mail helps each coloration schemes.
Detecting and adapting to darkish mode: Media queries
When you’ve set the stage, you need to use CSS media queries to detect when darkish mode is energetic and regulate your kinds accordingly. Right here’s an instance:
@media (prefers-color-scheme: darkish) {
physique {
background-color: #1a1a1a !necessary;
coloration: #ffffff !necessary;
}
h1, h2, h3, p {
coloration: #f1f1f1 !necessary;
}
}
This media question says, “If darkish mode is on, use these colours as a substitute.” It’s a strong instrument that permits you to create a tailor-made darkish mode expertise.
Nonetheless, it’s necessary to notice that not all e mail shoppers assist this characteristic. It really works nice in e mail shoppers that assist media queries, like Apple Mail and Outlook for Mac. However some shoppers, like Gmail, don’t assist this characteristic, so that you’ll must have fallback choices.
Making your brand seen in darkish mode: Picture swapping methods
Your brand is an important a part of your model id. So, guaranteeing it’s seen in each gentle and darkish mode is crucial. Listed below are some methods:
- Use clear PNGs: This could work effectively, however be cautious of darkish textual content or parts disappearing towards a darkish background.
- Add a lightweight define or glow: This can assist your brand stand out in each modes however make sure it doesn’t have an effect on the brand’s look in gentle mode.
- Create a darkish mode model of your brand: That is usually the most effective resolution. You should utilize picture swapping methods to indicate totally different variations based mostly on the mode.
Right here’s how the code may look if we wished to show totally different logos in darkish and light-weight mode:
CSS:
@media (prefers-color-scheme:darkish) {
.dark-mode-hide{
show:none!necessary;
}
.dark-mode-show{
show:block!necessary;
}
}
HTML
Be aware: the code beneath is Microsoft Workplace conditional code that tells Outlook to disregard the darkish mode brand. With Outlook, you may also use the tag “mso-hide:all” to maintain parts hidden in darkish or gentle modes.
This code tells e mail shoppers to make use of the darkish mode brand when darkish mode is energetic, and the sunshine mode brand when it’s not. You should utilize this similar method for different necessary graphics in your e mail design.
In fact, there are easier options, just like the glow or define trick.
Right here’s how the Sinch E mail on Acid brand would show in darkish mode with a white stroke that outlines textual content and fills in gaps (Be aware: Graphic designers usually hate this method):


Optimizing photos for darkish mode emails
Pictures play an important position in lots of e mail campaigns, however they are often tough to deal with in darkish mode. Listed below are some suggestions, lots of that are much like dealing with darkish mode logos:
- Use clear backgrounds: This enables your photos to mix seamlessly with each gentle and darkish backgrounds. In any other case, you would get an ugly white background round photos in darkish mode.
- Add a refined define: For photos that may get misplaced on a darkish background, contemplate including a lightweight define.
- Create darkish mode variations: For key photos, you may wish to create darkish mode-specific variations and use the picture swapping method we mentioned for logos.
Making certain accessibility in darkish mode emails
E mail accessibility ought to at all times be a precedence in your design selections, and darkish mode provides an additional layer to think about:
- Examine distinction ratios: Use instruments to make sure your textual content meets WCAG pointers for distinction in each gentle and darkish modes.
- Use ample font sizes: Smaller textual content might be more durable to learn in darkish mode, so err on the facet of bigger, clearer fonts.
- Don’t rely solely on coloration: Use different visible cues (like icons or underlines) to convey data, not simply coloration variations.
- Take a look at with display readers: Guarantee your darkish mode optimizations don’t intervene with display reader performance.
Dealing with darkish mode throughout totally different e mail shoppers
Given the inconsistent implementation of darkish mode throughout e mail shoppers, it’s essential to have a method:
- Design for the bottom widespread denominator: Guarantee your e mail appears good in shoppers that don’t assist darkish mode or superior CSS.
- Use progressive enhancement: Layer on darkish mode optimizations for shoppers that assist them.
- Take a look at extensively: Use instruments like Sinch E mail on Acid to preview your e mail throughout totally different shoppers and modes.
- Have fallback choices: For parts essential to your message, contemplate offering alternate options that work in all situations.
Finest practices for darkish mode e mail design
Now that we’ve lined the technical elements, let’s have a look at some general greatest practices for designing darkish mode emails:
- Begin with darkish mode in thoughts: Don’t deal with darkish mode as an afterthought. Think about it from the start of your design course of. When you’ve got an e mail design system, darkish mode needs to be a part of it.
- Use a darkish mode coloration palette: Develop a set of colours that work effectively in darkish mode and align together with your model.
- Keep away from pure black backgrounds: Very darkish greys are sometimes simpler on the eyes than pure black.
- Watch out with shadows: Shadows that look nice in gentle mode may disappear in darkish mode.
- Take a look at, take a look at, take a look at: All the time preview your emails in each gentle and darkish mode throughout varied shoppers and gadgets.
Testing: The important thing to darkish mode e mail success
Right here’s the place we placed on our problem-solving hat. Testing your emails in darkish mode throughout totally different shoppers is essential. That’s the place Sinch E mail on Acid turns out to be useful. Our e mail high quality assurance platform enables you to take a look at and preview your emails in darkish mode throughout varied shoppers and gadgets, serving to you catch rendering points earlier than they attain your subscribers.
With Sinch E mail on Acid, you possibly can:
- Preview your e mail in each gentle and darkish mode
- Take a look at throughout a number of e mail shoppers and gadgets
- Determine and repair rendering points shortly
- Guarantee your emails look nice for all subscribers, no matter their mode choice
Plus, monitor darkish mode e mail opens in with our analytics so you possibly can see precisely why optimizing for darkish and light-weight mode is well worth the effort.
Don’t be afraid of the darkish (mode)
Darkish mode in e mail doesn’t should be a headache. With the following tips, methods, and testing methods, you possibly can create emails that look nice whether or not your subscribers favor the sunshine facet or the darkish facet.
Bear in mind, the important thing to mastering darkish mode emails is thorough testing and a willingness to adapt your design course of. By contemplating darkish mode from the beginning, utilizing the proper instruments and methods, and testing totally, you possibly can guarantee your emails shine in any setting.
So go forward, e mail execs! Embrace the problem of darkish mode and create emails that look improbable irrespective of how they’re seen. And when doubtful, try it out with Sinch E mail on Acid. Your subscribers (and your peace of thoughts) will thanks.
Darkish mode is an ever-evolving drawback that e mail builders are tackling daily and new and thrilling options are cropping up on a regular basis. It’s not possible for us to cowl every thing about darkish mode in only one article, so we have now an awesome number of different sources.