Search code examples
emailoutlookhtml-emaildarkmode

HTML Email Outlook dark mode issue


I created a new HTML Email template and tested outlook, I find a small issue. just change the dark mood outlook bg color change is automatically generated. I search good and find a solution using this link. but not working. see the output file. see my code:

https://textdoc.co/DEGhpsMk8Z2nzQtb

Solution

  • Outlook clients (on Windows, macOS, iOS, Android and Outlook.com) will automatically adjust your colors into a dark mode and force them to be WCAG compliant and have a 4.5:1 contrast ratio.

    A solution to maintain your background-color if you absolutely must is to use a background-image of a single pixel of the color you need. (This won’t work in Outlook on Windows because it doesn’t support background-image.)