Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Controlling color swaps in Gmail in dark mode

I am having issues with Gmail in dark mode on mobile clients, namely the color choices it uses.

If I specify green background-color: #00ff00; as a background color, Gmail in dark mode changes the value to a dark green background-color: #1c4211;. It's not my first choice for a dark green. I am looking for ways to customize the color.

I have tried to target Gmail specifically with a class like: u ~ div td background-color: #00ff00;. With some color choices like red, it adheres to the color choice. In many others, it makes a substitution for a darker color that doesn't work for my intended needs.

Has anyone run across a solution to fine-tune the swap process?

like image 734
gwally Avatar asked Mar 03 '23 01:03

gwally


1 Answers

For gmail app on iphone I've found that hsl colors with multiple gradients do the trick, like so:

background: #10c893;
background: -moz-linear-gradient(top,  hsl(163,85%,42%) 0%, hsl(163,85%,42%) 100%);
background: -webkit-linear-gradient(top,  hsl(163,85%,42%) 0%,hsl(163,85%,42%) 100%);
background: linear-gradient(to bottom,  hsl(163,85%,42%) 0%,hsl(163,85%,42%) 100%);
like image 109
Iggy Avatar answered Mar 05 '23 16:03

Iggy