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 emails and landing pages. This feature is optional. It does not affect delivery or core functionality.
Supported browsers and email clients display your custom styles when dark mode is enabled on a recipient’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
Most modern web browsers support dark mode media queries. Some email clients do not.
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
Enable Dark Mode Editing in your asset settings before customizing styles.
Open your email or landing page in the builder.
Click Settings.
Turn on Enable Dark Mode Editing.
Look for the dark mode icon beside supported style attributes.
Customize Light and Dark Mode Styles
After enabling Dark Mode Editing, you can configure separate styles for light mode and dark mode.
Edit Dark Mode Styles
Click the dark mode icon beside a supported style attribute.
Configure separate values for:
Light Mode
Dark Mode
Repeat for each element that requires custom styling.
What You Can Customize
You can configure dark mode styles for:
Background colors
Text colors
Button colors
Link colors
Best Practices
Use high contrast between text and background
Avoid relying on borders for key visual separation
Test your email in multiple email clients
Use preview tools to check dark mode behavior
Avoid live text over background images
Some email clients invert text colors in dark mode while leaving background images unchanged. Use flattened images with embedded text when possible.
Preview Dark Mode
Preview dark mode directly inside the builder.
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 Light Mode and Dark Mode styles directly on the canvas.
Switch between Light Mode and Dark Mode while editing
View changes instantly on the canvas
Design dark mode styles without opening Preview
Step 1. Enable Live Dark Mode Editing
Switch Between Views
This works similarly to switching between Desktop and Mobile editing views.
Step 3: Customize Dark Mode Styles
Switch to Dark Mode.
Select an element such as a button.
Update style values:
Background color
Text color
View changes live 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 the Email Testing feature for the most accurate rendering results.
Email Testing shows how your email appears 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
Use separate images for light mode and dark mode.
Enable Dark Mode Images
Turn on Dark Mode Editing.
Select an image in the builder.
Open the Image Attributes panel.
Upload a separate dark mode image.
Image Size Requirements
Your light mode and dark mode images must use identical dimensions.
Use one-to-one image replacements for consistent rendering.
Modules and Dark Mode
Modules can include predefined dark mode styles.
Dark mode styles inside modules only apply when Dark Mode Editing is enabled at the asset level
If Dark Mode Editing is disabled, only light mode styles appear
Modules remain usable in assets that do not use dark mode
Avoid Layering Multiple Background Colors
Dark mode rendering varies across email clients.
Some clients may:
Invert only certain layers
Ignore nested background colors
Automatically darken bright sections
Create visible dividing lines between sections
This can reduce readability and create inconsistent layouts.
Best Practice
Keep your background structure simple.
Use:
One background color for Light Mode
One background color for Dark Mode
Background colors at the main content level only
Avoid adding background colors to:
Columns
Content blocks
Nested containers
If Multiple Backgrounds Are Required
Configure dark mode colors for every layer
Maintain strong text contrast
Test using Email Testing
Preview in both Light Mode and Dark Mode
Additional Resources
Use these related articles for unsupported email clients and advanced dark mode design guidance:
Need more help? Contact support via live chat within Knak using the chat bubble in the bottom right corner or email support@knak.com










