Read the statement by Michael Teeuw here.
Contrasting text on changing background
-
I’m trying to come up with a configuration that (mostly) guarantees text visibility in the following way:
White background shows black text and vice versa
Yellow background shows blue text and vice versa…the point being that the text color should ALWAYS be different from the background color, so that it can be read even if the background color changes. I’d also like that to happen with randomly-selected wallpapers.
So I’m wondering: Is it something I can do with CSS?
Or do I need to try something else? -
@mwm341 I want that too. text over photos. haven’t figured out a way yet.
some kind of css transform i think
https://css-tricks.com/methods-contrasting-text-backgrounds/
https://stackoverflow.com/questions/50986688/invert-text-color-based-on-background-in-css -
@sdetweil I guess one could cheat a little by doing something with an animated (slow) colour gradient, assuming that the text will be visible some of the time (in the place where I do it) - but that not much of a solution… (sigh)