How to Implement Light/Dark Mode in Marketo Email 3.0 Editor Using Custom CSS?
Hi Marketo Community,
We’re building an email template in the new Email Editor 3.0 and need to support light/dark mode based on the user’s device preference. While we know this can be achieved with CSS media queries (e.g., @media (prefers-color-scheme: dark)),
we’re unable to find a way to:
Inject Custom CSS into the entire template or specific modules.
Edit the HTML Head to add global styles (unlike in Legacy Editor).
Override Default Styling for dark mode (e.g., dark backgrounds, inverted text/images).
Example Use Case:
Light Mode: White background + dark text.
Dark Mode: Black background + light text
Challenges:
The new editor restricts direct HTML/CSS access for modules.
Dynamic content rules don’t seem to support device-level preferences.
Questions:
Is there a workaround to add custom CSS in Email 3.0 (e.g., via Template SDK, hidden modules)?
How are others handling dark mode compatibility in the new editor?
Are there planned features to support this natively?
We’d appreciate any code snippets, hacks, or official guidance!
Thanks,