Background image doesn't appear on HTML email Dark Mode - html

I am designing HTML email template which look fine on majority devices, iOS's and browsers except Outlook Office 365 on Windows 10 Dark Mode.
The problem is that my background image doesn't appear, instead background colour becomes dark. I have a logo on my background and since it's dar too - I can't see it.
This is how it looks on Outlook Office 365 on Windows 10 Dark Mode:
I would like to display my background image, but if it's impossible - either to change the background colour to light (which is against the Dark Mode rules, I guess), or display white version of the logo (the different image). But the changes should only be made on Outlook Office 365 on Windows 10 Dark Mode
How can I solve this issue?

Try something other than .svg. For example.png.

Outlook Windows doesn't have the controls we need to do that. The best you can do is to edit the image by adding a white stroke to it, or white shadow. This will not show on light mode (assuming your normal background is white--if not, use your normal background colour).
e.g. this white shadow will not show on light mode:
See https://www.litmus.com/blog/the-ultimate-guide-to-dark-mode-for-email-marketers/#design for more information about all this.

Related

HTML email background color is not displayed in Gmail/mobile/iOS/dark mode

Introductory information
I wrote the MJML code for the email and then converted it to HTML. As a result, everything works as it should but the background color is not displayed if the following conditions are true:
email client is Gmail
mobile version is used
dark theme is active
the OS is iOS
Examples
The background color is set for the mj-wrapper tag and the mj-section tags:
<mj-wrapper background-color="#27273F" background-url="https://drive.google.com/uc?export=view&id=1Xn1xfvaC97HohG_eE-IktLq8fkAGghV8" background-size="cover">
<mj-section padding-left="32px" padding-right="32px" background-color="#27273F" />
This is what it looks like on a desktop (correctly):
Here's what it looks like in the mobile version of Gmail on android (the same for the gmail mobile iOS version using light theme) (correctly):
And this is what it looks like in the mobile version of Gmail on iOS if you use a dark theme (the bg-color (#27273F) is not displayed):
Question
Could you please help me figure out what's causing the issue and how to fix it?
Additional Info
GitHub link - Here you can see both HTML and MJML code
Thank you!
Gmail iOS dark mode conducts a full inversion of your colours without thinking about it. Thus, even a darkly coloured email will get changed to light colours in 'dark mode', as you have experienced!
Furthermore, Gmail iOS provides no controls such as #media (prefers-color-scheme).
I noticed the image didn't get inverted. Maybe it could look nice to have the banner as an image, fading into transparency at the bottom (saved as png24). Then on light mode, it fades into the dark colour, but on dark mode, it fades into light.
A more technical option that may or may not work could be (untested) to have a 1x1 pixel background image the colour you want, and then use this hack to keep the text white: https://www.hteumeuleu.com/2021/fixing-gmail-dark-mode-css-blend-modes/.

Email Rendering in Dark Mode

I am having an issue in the rendering of my custom coded HTML Email template in Dark Mode. The email and all the colors work perfectly fine except this one top header. I'm unable to figure out why the green color becomes darker when viewing the email in Dark Mode.
Please see the attached image for what it looks like in Dark Mode:
Instead, it should render the green color like:
Can anyone please help me fixing this green header issue.
Thanks!
As of today, we cannot influence the colors or behavior with Outlook or Gmail clients that support Dark Mode through HTML or CSS. Gmail replaces color values in the <style> sheet and Outlook will inline Dark Mode color values and adds an !important to them and makes it impossible to override.
On Apple / IOS clients, you can use:
<meta name="supported-color-schemes" content="light">
Until Gmail and Outlook offer a solution, you're stuck with Gmail creating obverse colors and Outlook changing everything to a fairly standard group of colors (mostly #333333).
Good luck.
Without seeing your code, it's hard to know exactly what the issue is.
As others have mentioned, if the image is transparent and you're relying on a background color, that would be a cause for this change. Some ESPs (email service providers) invert background and text colors — bright colors, like that green, become darker. Some ESPs also make darker colors brighter in dark mode. Some ESPs allow you to set specific dark mode background and text colors using a media query, but not all support that.
Litmus has a great dark mode guide that breaks down how dark mode works in different ESPs and how to best optimize your emails.
Your best bet would be to make that green section an image just like the second one.
use
filter: invert(1) hue-rotate(180deg)
to invert the color of the web-page and where u don't want to invert the color type
filter: invert(1) hue-rotate(180deg)
again to invent the color as it was before

PWA - Status bar background and text color on IOS 13 dark-mode

I'm experiencing some trouble with my PWAs status bar color after Apple introduced the dark mode on the new IOS 13.
I used to set the "apple-mobile-web-app-status-bar-style" to "black-translucent" for a transparent background with white text on the status bar. Now, depending on the user system theme (light or dark), the text color changes from white to black and vice-versa. Because my layout uses a dark background the result is now black text over an "almost black" background.
Any workaround for this?
black-translucent - shows white text - ios12
black-translucent - shows black text - ios13
black-translucent seems to be a depreciated value of this meta tag. According to the user "furvy" at a discussion on apple.com: https://forums.developer.apple.com/thread/89471. He said:
Today I noticed this in the Safari remote debugger when looking at one of my Web Apps... '"black-translucent" is a deprecated apple-mobile-web-app-status-bar-style value. Support for this value will be removed in a future release.' [...]
It's so annoying also for my PWA, but this answer was in 2017 so it may be that it still worked due to a bug in iOS 12, but in iOS 13 they completely removed it.

Logo background colour looks different on mobile vs web

I have a logo with a blue background, I've picked the colour via Chrome inspector (matches Firefox colour picker as well), yet on mobile the logo stands out on the background.
What's going on/how can I prevent this?
Why you see another color on another display?
That logo has at least 5 colors in the background. That's the reason you can not match it.
Your monitor and mobile displays are not accurate, and it seems your contrast and brightness of the screen are not correct. In the professional photography and video editing, they call it color blind.
That's the reason professional designers do not use consumer monitors.
If you are a designer you need to have color accurate monitor and you need to calibrate it.
If you want to keep working on the current monitor at least change your monitor brightness, contrast and color settings, close to the natural settings.
What is the software solution?
Get the logo in SVG, PSD or PNG file from the designer. SVG files are better because they are vector files that you can open it with free software like Inkscape. Change whatever you like and export it to the PNG.
If your logo is a text like what you have here, Search font by image and recreate it with Inkscape. The logo you mentioned here seems to be two fonts. Clinica Pro and Sixta. and both of them are not free font.
You can remove the background using Gimp, Layer > Color to Transparency > Color to Alpha, and select background color.
Useful links:
Changing Background Color
Making the background of an image transparent in Gimp
Anyway, I did remove the background from that logo for you (Transparent Background):

colors don't match on FF on Mac

On this page, the <body> element has a background color of #77BFBC. The image (rv-banner.jpg) set as the background of the <header> element also has a background color of #77BFBC.
On windows (either FF or IE), the two colors blend perfectly. However on FF on the Mac, there is a noticeable difference between the background color of the image and that of the <body> element. How can I fix this?
Thanks,
Don
With the release of Firefox 3.5, colour-correction was turned on by default, but its effect depends on your system profile:
http://hacks.mozilla.org/2009/06/color-correction/
In practice, this means images saved with colour profiles are corrected and could show up mismatched to CSS colours.
It's possible to turn off colour-correction in Firefox, which fixes the problem for you, but that still leaves all the other potential visitors out there. Seems like removing the colour profile from the image is the way to go. There is a GIMP plugin that does this, see here for a discussion.
When images are displayed, they are converted from their color space to the color space of the screen.
To make your JPEG images display with the same color conversion as the rest of the elements, you should convert the images to the sRGB color space before saving them.
Browsers that doesn't support color profile information in images always uses the sRGB color space, so if you use sRGB for the images the color profile gets correct even for those browsers.
If there is no color profile in an image file, the sRGB color space is assumed. This means that you can save your images without a color profile to minimise the file size.
Try to save image as png not jpg. And if you are using photoshop, then choose "save for web and devices" not "save as".
This isn't due to your code but color profiles, I don't know if you can change this.