There’s a problem rising for e mail entrepreneurs, and it isn’t going away. It’s darkish mode for e mail.
We first wrote about darkish mode emails a couple of 12 months in the past. Then we devoted a whole month to exploring its impression on e mail advertising. (Take a look at the content material from Darktober together with our Designing Emails for Darkish Mode webinar.).
A 2021 survey on darkish mode from Pathwire and Ascend2 discovered 44% of e mail entrepreneurs are contemplating the darker UX and one other 28% plan to begin making it a part of the e-mail manufacturing course of quickly.
So, darkish mode continues to be a scorching matter amongst e mail builders and designers. It’s turn out to be part of the e-mail expertise that we will’t ignore. However, as is normally the case in our line of labor, coping with darkish mode for e mail is much from easy.
Let’s overview what you are able to do to handle among the important darkish mode e mail challenges.
Leap to a piece on this article:
What’s darkish mode?
Darkish mode is a setting that shifts an interface’s colour palette to show content material in excessive distinction utilizing darkish background colours and lightweight foreground. Black textual content turns into white, and white backgrounds go darkish. Finally, darkish mode is used to attenuate blue mild and improve readability to scale back eye pressure.
Many builders are already fairly acquainted with darkish mode because it’s a well-liked approach to view code. Darkish Mode can also be perfect for folks with mild sensitivity, and even those that work nighttime hours because it’s simpler to learn in a low-light atmosphere.
At one level, it was prompt that utilizing darkish mode on a cell gadget might prolong battery life, though it seems that the profit was considerably overstated. Take a look at our put up on darkish mode vs. mild mode to be taught extra concerning the professionals and cons and examine our darkish mode infographic for extra important data.
Many well-liked functions have a darkish mode possibility for the person interface. That features e mail apps. However (and this could come as no shock) e mail purchasers deal with darkish mode in numerous methods. That’s the place the largest challenges are available in.
What does darkish mode for e mail do?
It’s not at all times simply the e-mail utility’s person interface that switches when darkish mode is turned on. Electronic mail purchasers could change the look of the complete message as properly.
Darkish mode shifts the background and font colours of an e mail to mild on darkish. To do that, it checks any colour or background colour with a CSS property of background, colour, background-color, or an HTML attribute of bgcolor or colour.
If a textual content or background colour is outlined, darkish mode targets these HTML attributes and CSS properties by way of inside or inline kinds. It then adjusts them to make them lighter or darker. So, in case your textual content is a darkish colour, the darkish mode setting in some purchasers will change it to a lighter one. The identical factor applies to background colours.
All of this to say, since darkish mode makes mild colours darkish and darkish colours mild, it’s going to change the colours in your e mail accordingly (and it doesn’t precisely ask your permission).
Darkish mode normally doesn’t create issues with plain textual content emails because the textual content is black on white, which merely will get inverted. However with HTML emails, the place completely different elements have completely different outlined colours, issues can get difficult.
Let’s take a look at an Electronic mail on Acid marketing campaign that regarded advantageous in mild mode, however the darkish mode e mail expertise was less-than-perfect.
Electronic mail in mild mode
Electronic mail in darkish mode
For probably the most half, this e mail continues to be readable in darkish mode. However in case you’re devoted to designing and creating an excellent e mail expertise for each subscriber, there are in all probability some belongings you’d need to change.
That’s why a rising variety of e mail groups are taking the time to design emails for each mild and darkish modes. If that additional work doesn’t appear worthwhile, you can begin by making some primary darkish mode for e mail optimizations.
Optimizing emails for darkish mode
There are two easy steps e mail entrepreneurs can take immediately to advertise a practical person expertise in each darkish mode and lightweight mode.
1. Use PNGs with clear backgrounds
Utilizing clear PNGs on your photos permits the background colour change in darkish mode to seem seamless. This fashion, no matter colour the background colour modifications to, will probably be mirrored within the background of the picture.
As you in all probability seen within the Electronic mail on Acid darkish mode examples above, two of our photos (together with our brand) didn’t have clear backgrounds.
Utilizing clear png photos in emails so greatest follow for e mail designers. However you’ve bought to be careful for black textual content and icons. That leads us to our second tip…
2. Use white strokes round black design components
Darkish mode emails can typically trigger an undesirable disappearing act in your campaigns. All of a sudden black textual content, icons, logos, and extra are invisible in opposition to darkish backgrounds.
Whereas some graphic designers could cringe on the concept of including white strokes round textual content and icons it’s an efficient means to make sure your emails are readable and actionable. The white stroke won’t be seen in mild mode, nevertheless it helps issues stand out when seen in darkish mode.
Darkish mode for e mail code snippets
These easy optimizations are vital, however they could not clear up all your darkish mode e mail dilemmas. Electronic mail builders and designers have just a few decisions:
- Passively settle for that your emails gained’t at all times render completely in darkish mode.
- Attempt to hack darkish mode and get purchasers to point out the colours you need.
- Begin designing your emails with each a darkish mode and lightweight mode theme.
Making an attempt to power mailboxes to render emails in mild mode defeats the purpose. In case your subscribers need to view emails in darkish mode, the sensible factor to do is meet their wants and supply the proper expertise.
There are a few code snippets e mail builders have to turn out to be acquainted with with a view to construct emails for darkish mode.
First, add these meta tags and :root selector kinds to the e-mail:
That is used to inform if a tool has darkish mode enabled.
<meta title="color-scheme" content material="mild darkish"> <meta title="supported-color-schemes" content material="mild darkish"> <fashion kind="textual content/css"> :root { Colour-scheme: mild darkish; supported-color-schemes:mild darkish; } </fashion>
Then, add this media question to the e-mail’s CSS:
Regulate the colours on your model’s most well-liked darkish mode theme.
@media (prefers-color-scheme: darkish ) { .physique { background-color: #CCCCCC !vital; } h1, h2, h3, td { colour: #9ea1f9 !vital; padding: 0px 0px 0px 0px !vital; } }
On this media question, prefers-color-scheme: darkish acknowledges the darkish mode setting, and the physique tag addresses the physique colour for the complete e mail. So, when an e mail with this assertion is opened in Outlook.com or Workplace 2019 with Darkish Mode enabled, the outlined .physique and the h1,h2, h3, td tags take impact.
Nonetheless, there’s an enormous caveat to this method. The media question (prefers-color-scheme) shouldn’t be supported by each e mail shopper. It solely works with purchasers utilizing WebKit because the rendering engine. As of this writing, the CSS question will work with Apple Mail, Thunderbird, and sure variations of Outlook, however Gmail doesn’t assist it. For the most recent try this useful resource from CanIEmail.com.
In idea, you could possibly use (prefers-color-scheme) to “override” darkish mode and power it to make use of a lightweight background colour. Nonetheless, in case you’re going to take the time to attempt to power a white background, chances are you’ll as properly design a darkish mode expertise as a substitute. Plus, as famous, this CSS question gained’t work for each e mail shopper.
Want just a little inspiration? Take a look at some darkish mode e mail examples that includes designs from prime manufacturers.
Darkish mode and e mail shopper assist
The largest darkish mode for e mail problem is the alternative ways purchasers like Gmail, Apple Mail, and Outlook render issues.
Some e mail purchasers auto-invert colours and a few don’t. Others solely mechanically change colours in particular conditions. Some purchasers assist media queries for darkish and lightweight colour schemes whereas others don’t. Right here’s a breakdown:
Electronic mail Shopper | Auto-Inverts Colours? | Frequent Darkish Mode Problem |
Apple Mail (iPhone/iPad) |
Sure | Auto inverts when the background is clear or pure white (#fffff). |
Apple Mail (macOS) |
Sure | Auto inverts when the background is clear or pure white (#fffff). |
Outlook (iOS) |
Partially | Could make background colour darker. |
Outlook (macOS) |
Partially |
The one Outlook possibility that does assist @media (prefers-color-scheme). Could make background colour 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 colour 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) |
No | No present darkish mode person interface. |
The working system or gadget a subscriber is utilizing might complicate darkish mode for e mail even additional. It’s lots to maintain monitor of, which is why it’s useful to conduct darkish mode e mail testing that gives screenshots previewing campaigns in reside environments.
Electronic mail on Acid’s predeployment platform gives limitless darkish mode e mail previews on quite a lot of main purchasers and well-liked gadgets. You can even use our analytics to monitor darkish mode opens in quite a lot of e mail purchasers. It’s one of the simplest ways to ship e mail perfection it doesn’t matter what mode your subscribers desire. Electronic mail is at all times evolving, which is why it’s at all times greatest to check earlier than hitting ship.
Nonetheless questioning whether or not designing and creating emails for darkish mode is price your effort and time? You can even use Electronic mail on Acid to learn the way a lot of your checklist is viewing emails in darkish mode.
When Electronic mail on Acid ran its personal experiment, we discovered that round 14% of our subscribers had been utilizing darkish mode. We additionally count on that quantity to develop as darkish mode rises in recognition.
To be taught extra about how darkish mode is impacting the world of e mail advertising, try Pathwire’s darkish mode for e mail survey
Writer: The Electronic mail on Acid Workforce
The Electronic mail on Acid content material workforce is made up of digital entrepreneurs, content material creators, and straight-up e mail geeks.
Join with us on LinkedIn, observe us on Fb, and tweet at @EmailonAcid on Twitter for extra candy stuff and nice convos on e mail advertising.
Writer: The Electronic mail on Acid Workforce
The Electronic mail on Acid content material workforce is made up of digital entrepreneurs, content material creators, and straight-up e mail geeks.
Join with us on LinkedIn, observe us on Fb, and tweet at @EmailonAcid on Twitter for extra candy stuff and nice convos on e mail advertising.