Skip to main content
Solved

iOS Dark Mode - Gmail & Outlook

  • November 12, 2025
  • 4 replies
  • 47 views

Forum|alt.badge.img+1

I have a “hero section” in my email where the headline (h1) text overlays a lighter gradient. It looks good everywhere except in Gmail & Outlook mail clients when the iOS system is set to dark mode. 

At that point the h1 text changes from #000000 to #ffffff

My html abilities are limited these days, and I use the drag and drop editor.

I’ve come across articles here that talk about using either a div or span class=text-fixed in order to stop dark mode from changing that colour.

Here is where I have issues. Each article talks about the code needed to insert inline which is not a problem, I know where to access the code for blocks of text, as well as the code required to enter into the header <style> tags, which I cannot figure out. I have no idea where to access that and can only find references to ‘editing the html in an outside editor and then importing it as a template’. However then I am stuck in HTML editing mode and am unable to use that template in drag and drop mode. 

What I need is a step-by-step, severely dumbed down version of that advice in order to continue to edit my templates with the drag and drop editor. 

Best answer by cadence

@Kraegm,  it would depend on what your hero looks like...but maybe this problem area could be re-worked as an image with proper alt text to avoid color inversion altogether?  

If that fails, you might be able to use a hybrid template to set up the proper styles for outlook in the head but still be able to access the template in the drag-and-drop editor when building flows & campaign emails. Hybrid templates are documented here in Klaviyo's help center. These look like HTML in the normal template editor but open in the drag-and-drop editor in the flow & campaign template editor. Once you get the base hybrid template in good shape, hopefully future edits aren’t so bad! 

Cadence / Book a demo

4 replies

cadence
Expert Problem Solver II
Forum|alt.badge.img+8
  • Expert Problem Solver II
  • Answer
  • November 12, 2025

@Kraegm,  it would depend on what your hero looks like...but maybe this problem area could be re-worked as an image with proper alt text to avoid color inversion altogether?  

If that fails, you might be able to use a hybrid template to set up the proper styles for outlook in the head but still be able to access the template in the drag-and-drop editor when building flows & campaign emails. Hybrid templates are documented here in Klaviyo's help center. These look like HTML in the normal template editor but open in the drag-and-drop editor in the flow & campaign template editor. Once you get the base hybrid template in good shape, hopefully future edits aren’t so bad! 

Cadence / Book a demo


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • November 14, 2025

Thanks ​@cadence 

Creating a hero image that is image based + alt text makes it difficult for me to hand it off to one of our Marketers to tweak the copy as they see fit. It also makes it a longer process to create a French version of those emails. It’s not a solution for me, nor is it what I’d consider good practice. 

So… it seems to make this work I need to create a new “hybrid” template, and set it up dropping in code snippets that will allow the drag/drop editor to recognize those areas as editable.

While that reads like a viable solution, it’s also rife with potential issues for a non-coder such as myself. 

Am I to understand that I can’t convert an existing template to a hybrid one? Or actually access the source code of a drag/drop template beyond the “code tweaks” for blocks within the drag/drop editor? 


Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • November 17, 2025

Hi ​@Kraegm,

The best way to access the source code of a drag and drop template is to save the email you’re working on as a template and then export the template. From there, you can edit the source code as you see fit. Unfortunately, there isn’t a way to directly convert a drag-and-drop template to a hybrid template at this time. Apologies for this - I definitely see how this would be a useful feature to have, and I’m happy to bring this up with our product team.


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • November 26, 2025

Thanks Byrne. I appreciate you weighing in. 

It would be great to be able to access the source code for the email, although I can imagine the possibility of breaking the layout completely for those that aren’t as aware of what they are doing. I can’t imagine this will be coming anytime soon.