Skip to main content

Preview & Optimize Emails for Dark Mode

Learn how to preview and optimize your email campaigns for dark mode. Design emails that look great in Gmail, Outlook, and Apple Mail inboxes

Ira avatar
Written by Ira
Updated over 2 weeks ago

Dark Mode has become a widely adopted display setting across devices and platforms. With email clients like Gmail, Outlook, and Apple Mail supporting Dark Mode, it's important to understand how it impacts email design and how to optimize your campaigns accordingly.

In this article, you'll learn what dark mode is, how to preview your emails in dark mode, and best practices for optimizing your designs for both light and dark modes.


What Is Dark Mode?

Dark mode is a display setting that uses a dark background with light text, designed to reduce eye strain in low-light environments. Since its introduction, Dark Mode has gained popularity across major platforms (iOS, Gmail, Outlook) for reasons such as:

  • Reduced eye strain in low-light conditions.

  • Battery conservation on OLED screens.

  • Enhanced content readability across devices.

  • Aesthetic preference for a sleek, modern look.

⚠️ Important: You cannot prevent your emails from displaying in dark mode or disable automatic color inversion. Dark mode is controlled by your subscribers' email client and device settings (Gmail, Apple Mail, Outlook, etc.), not by the sender. Instead of preventing dark mode, focus on designing emails that look great in both light and dark modes.

How to Access Dark Mode Preview in Omnisend

To access the dark mode preview in Omnisend:

  1. Open your email in the Email Builder.

  2. Click Preview in the top right corner.

  3. Once in preview mode, switch the toggle to Preview in dark mode.

You can preview your email using two types of color inversion: Full and Partial. The sections below explain what each type means and how email clients handle dark mode.

Types of Color Inversion

Email clients apply Dark Mode in different ways, affecting how colors display. Understanding these variations can help create designs that look good in both Dark and Light modes.

1. Full Inversion

Reverses all colors (light to dark and vice versa). Typically applied by:

  • Outlook Desktop (Windows): Full inversion, making the entire background dark and text light.

  • Gmail Web: Can apply full inversion, especially if the email is not specifically optimized for dark mode.

  • Yahoo Mail: Similar to Gmail, Yahoo Mail often uses full inversion, inverting both text and background colors for better contrast.

2. Partial Inversion

Adjusts only specific elements, such as text, while leaving images and some brand colors untouched. This approach is common with:

  • Apple Mail (iOS and macOS): Applies partial inversion, where text changes to lighter colors, but background colors and images generally stay the same unless they’re extremely bright.

  • Outlook Mobile: Typically uses partial inversion, modifying text, and certain background colors while preserving images.

  • Gmail Mobile (Android & iOS): Uses partial inversion, often leaving images and background colors untouched while adjusting text color to enhance readability in dark mode.

Sample of color inversion in dark mode. Image credit: https://www.listrak.com/

To maximize readability and brand consistency, design emails with partial and full inversion modes in mind.

Why emails look different on mobile vs. desktop: The same email client (e.g., Gmail) may apply different inversion types depending on the device. Gmail iOS uses full inversion, while Gmail Android uses partial inversion. This is controlled by the email client's dark mode logic, not by Omnisend. Always preview your email in both Full and Partial dark modes, and send test emails to yourself on mobile and desktop before sending to your audience.

Dark Mode Compatibility in Popular Email Clients

The table below shows how different email clients handle dark mode as of October 2023. Use this as a reference when designing your emails.

Email Client

HTML Treatment in Dark Mode

Supports @media

[data‐ogsc] support

Notable Quirks

Apple Mail (MacOS)

No change*

✓ Yes

✘ No

✓ Yes

Pure white (#ffffff) BGs will be inverted if <meta> is present

iPhone / iPad (iOS 16)

No change*

✓ Yes

✘ No

✓ Yes

Pure white (#ffffff) BGs will be inverted if <meta> is present

Partial invert

✘ No

Partial*

✘ No

Lighter BG colors will be darkened.
Image swap works if the image is linked

Outlook 2021 (WinOS)

Full invert*

✘ No

✘ No

✘ No

Special targeting is possible for VML sections.

Outlook app (iOS)

Partial invert

✘ No

Partial*

✘ No

Lighter BG colors will be darkened, and light fonts on a dark background may be darkened.
Image swap works if the image is linked

Outlook app (Android)

Partial invert

✘ No

Partial*

✘ No

Lighter BG colors will be darkened, and light fonts on a dark background may be darkened.
Image swap works if the image is linked

Gmail app (iOS)

Full invert*

✘ No

✘ No

✓ Yes

Special targeting is possible for some colors and font colors

Gmail app (Android)

Partial invert

✘ No

✘ No

✓ Yes

Office 365 (Win)

Full invert

✘ No

✘ No

✘ No

Office 365 (Mac)

Partial invert

Partial*

✘ No

✓ Yes

Lighter BG colors will be darkened

Windows Mail

Full invert

✘ No

✘ No

✘ No

Note: Forcing the background color to remain consistent does not impact the font color, which will still invert. The only exceptions to this are clients that fully support @media or [data-ogsc] and the Gmail app, where the color blend fix is effective.

Using Forced Background Colors (Advanced)

Some email clients (Apple Mail, Gmail apps, Office 365 Mac) allow you to force background colors using custom CSS in the HTML item. However, this technique does not work in Outlook Desktop, Windows Mail, or Office 365 (Win), which apply full inversion regardless. Even where supported, text colors will still invert automatically.

To add custom CSS in Omnisend:

  1. Open your email in the Email Builder.

  2. Go to Add Elements on the left.

  3. Drag the HTML item into your email.

  4. The HTML editor will appear on the right.

  5. Paste your dark mode CSS code there.

⚠️ Note: Forced background colors are not a universal solution and require advanced CSS knowledge. Some email clients may ignore custom CSS entirely. Always test in real inboxes.

Best Practices for Designing Emails for Dark Mode

To improve the dark mode experience for your subscribers, follow these essential design and coding tips.

Optimize Logos and Images for Dark Mode

  • White logos on white backgrounds: If your logo is white or very light, it will disappear when placed on a white background in dark mode (which inverts to black). Add a colored or transparent background behind your logo, or include a light outline to ensure visibility in both modes. Omnisend doesn't support automatic logo swapping between light and dark modes – you need to edit your logo file directly.

  • Transparent Images: For images with dark text on a transparent background, add a light, translucent outline to ensure the text remains legible if colors invert. This is particularly useful for Gmail and Outlook, which often apply partial or full-color inversion in Dark Mode.

    Sample of the logo in dark mode. Image credit: https://www.litmus.com/

  • Branding in Dark Mode: Use subtle, light elements that are invisible in Light Mode but add a unique, branded touch in Dark Mode.

  • Non-Transparent Images: Add padding around key elements in non-transparent images to avoid alignment issues when colors change in Dark Mode. Note that images with very bright backgrounds (white, yellow, etc.) may still have their colors inverted by email clients like Gmail, iOS, and Outlook mobile, even if they are not transparent. This is controlled by the email client, not Omnisend.

Use Black Text on a White Background for Text Content

Keeping text content as black on a white background is a simple yet effective way to maintain readability in both Light and Dark Modes. This minimizes unwanted color changes and lets you focus on creative design elements outside the main text area.

Add Base Styles for Dark Mode in Your Email Templates

By including specific Dark Mode styles in your templates, you can make sure that all your emails display correctly—even if you forget to adjust styles for Dark Mode.

Here’s a quick example of CSS base styles:

.darkbg { background-color: black !important; } .h1, .h2 { color: white !important; } .button { background-color: white !important; color: black !important; }

Quick Tip: Using classes like .darkbg for backgrounds and .button for CTA buttons allows for quick updates across multiple emails, ensuring consistency in Dark Mode.

To add this CSS in Omnisend: Go to Add Elements → drag the HTML item into your email → paste the code in the editor that appears on the right.

Always Test/Preview Emails in Omnisend

Use the Preview feature (dark mode toggle switched) in Omnisend to preview your emails for popular clients, such as Gmail, Outlook, and Apple Mail, and different operating systems. Check for readability, brand colors, and correct display of logos and images.

💡 Tip: Dark mode preview shows how your email will likely render, but email client rendering can vary. Always send a test email to yourself and view it in actual inboxes (Gmail, Outlook, Apple Mail on mobile and desktop) to confirm the final appearance before sending to your audience.

Keep Design Elements Simple and Consistent

Simple backgrounds (black for Dark Mode and white for Light Mode) enhance readability and reduce the risk of design mismatches across email clients. Incorporate subtle contrasts or shadows for extra depth without compromising Dark Mode functionality.

Common Issues & Workarounds

My custom colors still look wrong after designing for both modes

Some email clients (like Gmail iOS and Outlook Desktop) apply full color inversion that overrides your custom design, even if you've designed for both modes. This is an email client limitation, not an Omnisend issue.

Workaround: Create separate email blocks for mobile and desktop using visibility settings, and design the mobile blocks with darker tones that invert less aggressively in dark mode. Always preview in both Full and Partial dark modes, and send test emails to yourself on mobile and desktop to see the final rendering.

My email looks different on mobile vs. desktop

The same email client can apply different dark mode inversion types depending on the device. For example, Gmail iOS uses full color inversion (reversing all colors), while Gmail Android uses partial inversion (adjusting text and some backgrounds). This is controlled by the email client's dark mode logic, not by Omnisend.

Solution: Preview your email in both Full and Partial dark modes in Omnisend, and send test emails to yourself on mobile and desktop before sending to your audience.

The preview doesn't match what I see in my inbox

The dark mode preview gives you a close approximation of how your email will render in Full and Partial inversion modes, but email client rendering can vary slightly.

Solution: Always send a test email to yourself and view it in actual inboxes (Gmail, Outlook, Apple Mail on mobile and desktop) to confirm the final appearance before sending to your audience.

FAQ

Can I prevent my emails from displaying in dark mode?

No, you cannot prevent emails from displaying in dark mode or force a white background across all email clients. Dark mode is controlled by each subscriber's email client and device settings (Gmail, Apple Mail, Outlook, etc.), not by the sender. Some email clients apply full color inversion (turning white backgrounds black), while others apply partial inversion. Instead of trying to prevent dark mode, design your emails to look great in both light and dark modes using our dark mode preview feature.

How can I force my background colors to stay the same in dark mode?

Omnisend does not have a built-in feature to force background colors. You can add custom CSS using the HTML item in the email builder to apply forced background colors for some email clients (Apple Mail, Gmail apps). However, this technique does not work in Outlook Desktop, Windows Mail, or Office 365 (Win), which apply full color inversion regardless. Even where supported, text colors will still invert automatically. To add custom CSS: Go to Add Elements → drag the HTML item into your email → paste your CSS code in the editor that appears on the right.

Why does my white logo disappear in dark mode?

If your logo is white or very light and placed on a white background, it will disappear in dark mode because the background inverts to black, but the logo remains white (or becomes darker). To fix this, add a colored or transparent background behind your logo, or apply a light outline to ensure it remains visible in both light and dark modes. Always preview your email in dark mode before sending.

Where do I add dark mode CSS code in Omnisend?

To add custom CSS in Omnisend: Open your email in the Email Builder, go to Add Elements on the left, drag the HTML item into your email, and the HTML editor will appear on the right. Paste your dark mode CSS code there. Note that some email clients may ignore custom CSS entirely – always test your email in real inboxes.

Why do my emails look different on mobile compared to desktop in dark mode?

The same email client can apply different dark mode inversion types depending on the device. For example, Gmail iOS uses full color inversion (reversing all colors), while Gmail Android uses partial inversion (adjusting text and some backgrounds). This is controlled by the email client's dark mode logic, not by Omnisend. To ensure your email looks good across devices, preview it in both Full and Partial dark modes in Omnisend, and send test emails to yourself on mobile and desktop before sending to your audience.

What if my custom colors still look wrong after following this guide?

Some email clients (like Gmail iOS and Outlook Desktop) apply full color inversion that overrides your custom design, even if you've designed for both modes. This is an email client limitation, not an Omnisend issue.

Workaround: Create separate email blocks for mobile and desktop using visibility settings, and design the mobile blocks with darker tones that invert less aggressively in dark mode. Always preview in both Full and Partial dark modes, and send test emails to yourself on mobile and desktop to see the final rendering.

Does the dark mode preview show exactly how my email will look in inboxes?

The dark mode preview gives you a close approximation of how your email will render in Full and Partial inversion modes, but email client rendering can vary slightly. Always send a test email to yourself and view it in actual inboxes (Gmail, Outlook, Apple Mail on mobile and desktop) to confirm the final appearance before sending to your audience.

Why do my image backgrounds change color in dark mode?

Email clients like Gmail and Outlook on mobile apply color inversion to images with very bright backgrounds (white, yellow, etc.), even if the image is not transparent. This is controlled by the email client, not Omnisend. To reduce this, use images with non-pure-white backgrounds or add padding/borders around key elements.

Can I set dark mode colors in Brand Assets?

No. Brand Assets (Accent, Dark, Light colors) apply to email templates but do not control dark mode rendering across email clients. To optimize for dark mode, use design best practices or add Custom HTML with dark mode CSS.


Can’t find what you’re looking for? Our 24/7 support team is here for you. Message us in-app or email [email protected].

Did this answer your question?