Dark mode email is one of the hottest digital design trends in recent years. It is a reversed color scheme in email clients like Google’s Gmail, Yahoo Mail, and others.
If your email originally had a white background and black text, and your subscribers have a dark mode setting on, the email might show up with a black background and white text. The specifics of the design flip largely depend on email clients, as you will see in the next section of this article. Here is an example of an email in both light and dark modes with partial inversion:
Users who prefer dark mode over the standard light one have different reasons for it. Some choose it to save their devices’ battery, others believe that it is easier on the eyes. Either way, the number of people reading emails in dark mode continues to climb. According to Litmus analytics, Apple family email clients combined took first place as the most popular ones in 2022 — they were used in 59.8% of email opens. At the same time, around a third of people using an Apple email client use dark mode.
What about the Android users? One survey showed that almost 82% of them turn dark mode on as much as possible. Based on these estimations, it’s safe to say that at least a part of your audience will be viewing the campaigns you send in dark mode, no matter the device.
These popular apps can support dark mode:
However, there is a difference in how email clients handle it. Some might not change the appearance of your HTML email, no matter if a device or an app is set to light or dark. Others might partially or fully invert the colors. The only way to find out and avoid email mistakes is to test before sending the campaign. 58% of email marketers preview or test emails in dark mode before sending them at least some of the time.
In general, you don’t have to design a separate email for the dark mode users. However, there are design aspects to keep in mind. Dark mode can change the look of your emails in a few ways:
To make sure your emails look good in dark mode, it’s important to test your designs with different email clients and devices.
For marketers, the main advantage of adapting emails to dark mode is that it caters to their audience’s expectations. It’s the same reason why websites strive to have a well-crafted UX design — because a good UX design ensures that every aspect of the user journey is effortless, among other perks.
If done well, dark mode for emails can make customers more satisfied with the business and loyal. It shows that a company cares about the customer experience.
Challenges that email marketers might face when dark mode is not set up properly:
Below is an example of readability issues in dark mode:
And here you can see how logos and design can look off if dark mode isn’t accounted for:
The way you adapt your emails to dark mode is by tweaking the contents of your normal default email and by adding more settings on top of existing ones. There are a few simple things you can do, plus you can also dive into coding tips for more control and customization.
Let’s explore some of the simpler ways first.
Make sure that dark mode is enabled in your email, for those readers that have it turned on. This allows the email contents to adapt to the dark mode settings of the email client, ensuring that your email is displayed correctly whether the user is in light mode or dark mode.
Add this code snippet between tags <head></head> of your email:
These tags enhance the user experience by respecting the user’s preferred color scheme (light or dark) in their browser or email client.
The <meta name=”color-scheme” content=”light dark”> tag specifies that your email supports both light and dark color schemes. This tag helps web browsers and email clients render the page background with the desired color scheme.
The <meta name=”supported-color-schemes” content=”light dark”> tag has the same function. It is particularly useful in emails, as it can enable dark mode in email clients such as Apple Mail that don’t automatically invert colors when users turn on dark mode.
PNG is a type of image file that can have a transparent background. When you use a PNG image in an email, the email’s background color will show through the transparent parts of the image. In dark mode, this means your image contents can adapt to the dark background, keeping your design well put together.
Let’s take an image with a white background as an example. It would look good on a white background in light mode, but what if your readers have a dark mode on?
This is what could happen:
Compare this to the situation when the picture has a transparent background:
What if the transparent background isn’t an option?
If your images are not transparent and include backgrounds, make sure there is enough padding around your focal point to avoid an awkward juxtaposition.
Compare the two examples below — the one on the left has no bottom padding at all, while the one on the right has an equal amount of padding.
What if you have text, logo, or other elements in a dark color on a transparent background?
If you have dark text on a dark background, it can be hard to read. One way to fix this is to add a translucent (partly see-through) or white outline to the text. This can make the text stand out against the background, making it easier to read.
The border is easy to add in a tool that works with images, like Canva, Figma, and of course Adobe Photoshop and the like.
Compare the contents of these two examples. The dark text without a border is practically unreadable on a black background:
A border around black text makes it readable:
The high contrast between true black backgrounds (HEX color #000000) and true white (HEX color #FFFFFF) will make things more difficult to read, defeating the purpose of dark mode altogether.
Instead, use dark gray (HEX color #121212) as the background color — this softens the contrast and can make your email easier to read.
These methods are simple enough but can make your emails look much better in dark mode. You can also take another step and consider advanced coding tips and solutions.
Here are a few advanced tips on how to create good-looking emails for the dark mode that go beyond just adapting the images and logos.
This is a CSS media feature. The role of this query is to detect which color theme a subscriber has on — light or dark.
You can use this feature to apply different styles to your email based on the user’s preference. For example, you might use light text on a dark background for users who prefer dark mode.
Here is an example of the code used in a reservation confirmation email from Tradewinds Hotel:
And here is what the email itself looks like with partial inversion in Gmail on Android:
This is a method used to make the email compatible with dark mode in Android’s Outlook app.
You can use this prefix to apply the same styles you used for dark mode to this particular email client.
Here is the snippet of the code used for the Figma email below. Note the use of descriptions stating the purpose of each segment like “Copy dark mode styles for android support” which indicates that the code is needed for Android email clients such as Outlook.
In this example, the email will have a black background and light text when viewed in Android’s Gmail app:
This involves adding specific styles to your email’s HTML that will only be applied when the email is viewed in dark mode.
You can do this by adding a class to the HTML elements you want to only show in dark mode and then using CSS query to hide these elements in light mode.
The Figma email code and the example above are a good representation of how this would look in a real campaign.
Dark mode for Gmail was introduced in 2019, but even four years after its release, some of its features put email marketers on the spot. For example, Gmail’s insistence on changing any light text color to a dark text color in iOS. The result of this is that an originally “dark” email with white text on a black background may turn into black text on a light gray background.
That’s what happened in the example below:
Web and email developer Rémi Parmentier came up with a solution to this using CSS Blend Modes. To use the method, read the full instructions on Rémi’s website.
Outlook can have unpredictable text color changes when it comes to dark mode, including forcing an inversion that turns an originally dark email into a light-colored one. The result can be a bad-looking design and poor user experience where some parts of the email are ineligible.
Nicole Merlin came up with a solution to this Microsoft Outlook issue by using MSO-specific gradient CSS properties and a VML (Vector Markup Language) trick. See full details on how to do it in her tutorial.
Let’s take a look at some examples of how brands handle the switch between light and dark modes. Note that the screenshots in this section are made in Gmail on an Android device which supports only partial inversion.
In light mode, Mobbin’s email above has very clean, white, and light gray background colors with black text. It also has a few light images. The black mode reverses the text color to light gray, while the backgrounds are set to dark gray and black. The dark mode leaves the images and buttons untouched, but black buttons are still visible and clear thanks to their dark gray background.
The minimalist black logo in the email’s dark mode is still visible thanks to a white/light gray border around it, which harmonizes nicely with the color of the text.
Overall, both light and dark modes look professional and well-designed.
This email changed its background, its text color and adjusted the footer colors to accommodate for dark mode. The color of choice for the button looks good in both versions and it stayed the same.
Notice how the small drawing of a person in the signature has the same color, but there is a thin light outline around it in the dark version. It helps keep the image figure’s shape clear and prevents it from being lost in the background, despite some parts of the image (like shoes or hair) being dark.
This email from Mount Sapo follows the brand’s website’s beautiful and minimalistic design, and it managed to keep the same feel in the dark mode, too. The light yellow background in light mode became olive, while the text turned from dark gray to white and light yellow.
The email handled the logo by using a transparent background in both versions. However, instead of adding a white or translucent outline to it, the team behind the brand made its color brighter — which nicely matches one of the colors used on their website and keeps the whole campaign in line with branding.
theSkimm went for a simple switch of light to dark, with some minor adjustments. The white background and dark text of the first half of the email turn into a black background and white text in dark mode. The original design of the second half already fit with the dark mode so it stayed as is.
Some of the logos in the email showed up with white backgrounds. This is a deliberate choice by the team behind theSkimm. The white “backgrounds” of the logos have rounded corners, which means the white color is part of the logo, and the actual background is transparent. This design decision makes logos very clear and keeps them the same in both versions, preserving brand identity and recognition.
For email marketers, it’s crucial to stay on top of trends, and dark mode is already widespread enough that it can’t be ignored.
There are a few simple tweaks that can help you adapt your emails for it:
You can also use HTML and CSS code, such as adding dark mode styles for @media (prefers-color-scheme: dark) query, adding the prefix [data-ogsc] for duplication of dark mode styles, and applying fixes published by Nicole Merlin and Rémi Parmentier to Gmail and Outlook.