This article will explain how to use dark mode editing. For a more general overview of dark mode, see our help doc: Dark mode.
Overview
Dark mode editing lets you create custom dark mode styles for your emails or landing pages. This feature is optional. It does not affect email delivery or basic functionality.
Browsers and email clients that support dark mode CSS media queries will display your custom styles when dark mode is active on a user’s device.
⚠️ Important: When you enable dark mode editing for an email, we include some code that tells supported email clients to expect custom dark mode settings. In this state, some supported email clients may try to help make things darker by adjusting to elements that you have not yet customized, for example by turning a white background (for light mode) into a transparent background (in dark mode). Landing Pages are unaffected by this issue.
Supported Email Clients
All major web browsers support dark mode media queries. Not all email clients support them. Below is a list of major email clients that support and do not support dark mode editing:
Email client | Supports dark mode editing |
Apple Mail (iPhone & iPad) | Yes |
Apple Mail (Mac) | Yes |
Outlook (Mac) | Yes, in some versions. (Support can vary between installations. Still darkens elements that are considered too bright, click here to learn more) |
Outlook (Windows) | No |
Outlook App (Android) | No |
Outlook App (iOS) | No |
http://Outlook.com (Browser) | No |
Gmail App (iOS) | No |
Gmail App (Android) | No |
Yahoo App (iOS) | No |
Yahoo App (Android) | No |
Turn On Dark Mode Editing
Dark mode editing must be enabled in your asset settings.
Open your email or landing page in the builder.
Click Settings.
Toggle the Enable dark mode editing feature.
Once enabled, a dark mode icon appears next to customizable attributes.
Customize Light and Dark Mode Styles
After enabling dark mode editing, you can configure separate styles.
Edit Dark Mode Styles
Click the dark mode icon next to a style attribute.
Set your Light Mode and Dark Mode styles
Repeat this for each element that needs custom dark mode styling.
Preview Dark Mode
You can preview your design in dark mode directly in the builder.
Preview Steps
Click Preview.
Use the toggle in the top-right corner.
Switch between light and dark mode views.
For emails, this preview is an approximation since not all email clients support Dark Mode Editing. Rendering may vary between email clients.
Live Dark Mode Editing
Preview and edit your emails in Light Mode and Dark Mode at the same time. See changes live on the canvas as you build.
Note: This feature is currently in Alpha testing. Please reach out to tiffany@knak.com if you would like to participate.
What’s New
You can now:
Toggle between Light Mode and Dark Mode directly on the canvas
See changes update live while editing
Design Dark Mode styles without opening Preview
Enable Dark Mode Editing
Dark Mode editing must be enabled in your settings.
Step 1: Turn On Dark Mode Editing
Step 2. Switch Between Light And Dark Mode
Once enabled, you can switch views directly inside the editor.
Open your email
Select Sun Icon to view the asset in Light Mode or the Moon Icon to view the asset in Dark Mode view on the canvas.
This works similar to switching between Desktop and Mobile views. Learn more about Mobile View Editing.
Step 3. Customize Dark Mode Settings
Switch to Dark Mode
Select an element (example: button)
Update color values such as:
Background color
Text color
View changes instantly on the canvas
Note: If you have not set Dark Mode values, your email will look the same in both views.
Test Your Email
Use our Email Testing Feature for the most accurate results. This shows how your email renders in real email clients.
Reminder: Once dark mode editing is enabled, set Dark Mode Styles for all elements. When you enable dark mode editing, special code is added to your email. This tells supported email clients to expect custom dark mode styles.
Images in Dark Mode
You can set different images for light and dark mode.
Enable Dark Mode Images
Turn on Dark Mode Editing under Settings.
Select an image in the builder.
Go to the Image Attributes panel.
Upload a separate image for dark mode.
Image Size Requirements
Your dark mode image must have the exact same dimensions as the light mode image. Design images to swap one-for-one.
Modules and Dark Mode
Modules may include dark mode customizations:
Dark mode styles pre-added into modules are only included if dark mode editing is enabled at the asset settings level.
If dark mode editing is off, only light mode styles are used.
You can still use the module in assets that do not use dark mode.
Avoid Layering Multiple Background Colors
Dark mode is not handled the same way across all email clients. Some clients:
Invert only certain background layers
Ignore inner column background colors
Automatically darken bright sections
Create visible lines between sections
This can reduce readability and make your layout look uneven.
Best Practice
Keep your background structure simple.
Use one background color for light mode
Use one background color for dark mode
Apply the color at the main content level
Avoid adding background colors to:
Columns
Content blocks
Nested containers
If Multiple Backgrounds Are Required
Set dark mode colors for every background layer
Maintain strong text contrast
Test using Email Testing
Preview in both light and dark mode
A simple background setup improves consistency across Apple Mail, iPhone Mail, and Outlook for Mac.
Additional Resources
How dark mode editing works with your marketing automation instances and sending platforms
See our help docs for more information:
For email clients that don't support dark mode editing
Not every email client supports dark mode customizations, so here are some more help docs that will assist you in the creation of dark mode friendly emails for those that don’t:
Need more help? Contact support via live chat within Knak using the chat bubble in the bottom right corner or email support@knak.com










