---
url: "/emailify/design/dark-mode.md"
description: "Dark mode overrides are only supported on iOS/MacOS Apple Mail apps (Gmail, Outlook, etc _do not support_ dark mode overrides)."
---

# Adding dark mode design overrides (only supported in Apple Mail on iOS/MacOS)

> Dark mode overrides are only supported on iOS/MacOS Apple Mail apps (Gmail, Outlook, etc _do not support_ dark mode overrides).

> **Warning:** The [support for dark mode override styles](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) in email clients is limited to Apple Mail on iOS/MacOS; which means dark mode overrides _will not work_ on any other clients like Gmail, Outlook etc. Please be aware of this and try to design your emails with the [progressive enhancement](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/) in mind.

### Video Tutorial: Add dark mode styles to HTML email designs

This video walks through how to add custom dark mode style overrides to your email designs for exporting production-ready, responsive HTML emails from Figma using the Emailify plugin.
[Embedded media](https://www.youtube-nocookie.com/embed/uAxQ5Psi1m4)

## Important design considerations for dark mode

![Email client support for dark mode CSS](/assets/images/emailify/caniemail-dark-mode.jpg)

> **Warning:** The [support for dark mode override styles](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) in email clients is limited to Apple Mail on iOS/MacOS; which means dark mode overrides _will not work_ on any other clients like Gmail, Outlook etc. Please be aware of this and try to design your emails with the [progressive enhancement](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/) in mind.

Due to each email client having their own implementation, dark mode is very tricky to design for, but it's worth trying to work _with_ the (often terrible) changes that each email client automatically applies in dark mode.

It's a good idea to check out some resources (like these articles from [CampaignMonitor](https://www.campaignmonitor.com/blog/email-marketing/designing-an-email-for-dark-mode-dark-and-light-optimization/) and [Litmus](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/)) that go through exactly what these email clients are changing and how to mitigate some of those changes in the design as good starting points.

## Applying dark mode color overrides

[Video](/assets/videos/emailify/design/dark-mode-color-override.mp4)

Select an element such as a text layer, image, Button, Row, Column, or Wrapper, then click the **Settings** button in the plugin header. You can set dark mode text and background colors in the **Dark Mode Overrides** section at the bottom of the Settings panel.

For Button, Row, Column, and Wrapper layers, you can also set a **Border Color** override. This changes the border color in dark mode without changing the border width or style used in light mode.

These overrides will be shown on [the email clients that support](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) this feature (iOS/MacOS Apple Mail apps) when the email is being viewed on a device with dark mode enabled.

> **Warning:** The [support for dark mode override styles](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) in email clients is limited to Apple Mail on iOS/MacOS; which means dark mode overrides _will not work_ on any other clients like Gmail, Outlook etc. Please be aware of this and try to design your emails with the [progressive enhancement](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/) in mind.

## Swapping between two image layers in dark and light mode

[Video](/assets/videos/emailify/design/swap-dark-mode-content.mp4)

You can also swap certain image layers to swap them out on dark mode by clicking your Figma content layer (inside of a Column layer), then clicking the **Settings** button in the plugin header, and enabling either the **Only Hide in Dark Mode** or **Only Show in Dark Mode** toggle depending on if you want the image layer to be shown or hidden on [the email clients that support](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) this feature (iOS/MacOS Apple Mail apps) when the email is being viewed on a device with dark mode enabled.

> **Warning:** The [support for dark mode override styles](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) in email clients is limited to Apple Mail on iOS/MacOS; which means dark mode overrides _will not work_ on any other clients like Gmail, Outlook etc. Please be aware of this and try to design your emails with the [progressive enhancement](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/) in mind.

## Previewing dark mode in the plugin

Open Preview and turn on the **Dark Mode** switch in the HTML Preview toolbar. Keep using the preview-width selector if you want to compare the same dark mode design at desktop or mobile widths. Dark Mode is unavailable while the combined **Desktop & Mobile** Hybrid view is selected.

The local preview uses a generic automatic dark mode treatment and activates the email's `prefers-color-scheme` styles. Its color adjustments provide a rough guide and do not target a particular email client. If the email contains Emailify dark mode overrides, use the adjacent **Overrides** switch to show or hide its explicit background, text, border, and image-swap styles.

> **Warning:** The toggle is a design aid, not a client or device emulator. It does not reproduce authenticated sanitizers, native rendering engines and fonts, app chrome, delivery processing, or every client/version difference.

## Testing your emails in dark mode

### Video Tutorial: Test HTML emails in dark mode with exports from Figma

This video walks through how to test HTML emails in dark mode with exports from Figma using the Emailify plugin and Litmus.com.
[Embedded media](https://www.youtube-nocookie.com/embed/h5Gq9apZrxk)

It's always worth doing a test of your own emails using a service like [Litmus](https://www.litmus.com/) or [Email on Acid](https://www.emailonacid.com/) to ensure they're looking good before you send them out.

> **Warning:** The [support for dark mode override styles](https://www.caniemail.com/features/css-at-media-prefers-color-scheme/) in email clients is limited to Apple Mail on iOS/MacOS; which means dark mode overrides _will not work_ on any other clients like Gmail, Outlook etc. Please be aware of this and try to design your emails with the [progressive enhancement](https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/) in mind.

> **Tip:** You can [apply settings in bulk](/emailify/design/settings#apply-settings-in-bulk) by opening **Settings**, then selecting multiple Emailify layers of the same type in Figma. Any setting you change will be applied to all selected layers.
