News for hackers. Stuff that matters.
Re:Dark mode in a website with CSS by jacobolus on Tuesday October 08, 2019 @09:15PM (#21199039)
> Solution: use CSS filter:invert for images

> Solution: filter: invert(1) hue-rotate(180deg);

This might be nominally acceptable, but it’s going to be pretty mediocre. Both of these methods dramatically distort color relationships from the original.

Getting someone to explicitly pick colors that work in dark mode will yield much better results. (Of course, takes a lot more manual work by an expert, instead of a few automatic text replacements.)

Re:Dark mode in a website with CSS by greggman2 on Wednesday October 09, 2019 @01:50AM (#21200418)
A agree 100% but didn't want to have to manually remake 150+ diagrams