I specialize in crafting dark theme versions of popular websites using CSS.
One challenge I often face is dealing with images like the ones below:
https://i.sstatic.net/ZLpPT.png
https://i.sstatic.net/2NKRP.png
Websites typically use background-image
to showcase these images.
However, when I use filter: invert(1)
to change these images, they appear as white-on-white in Firefox.
My question is, is there a way to make them display as white on black using only CSS? The method used can involve filter
or any other technique that accomplishes this effect.