News for hackers. Stuff that matters.
Re:Dark mode in a website with CSS by __MatrixMan__ on Wednesday October 09, 2019 @12:37AM (#21200064)
Your comment makes me glad I don't do UI's. But then I'm reminded of a syntax highlighting scheme I wish existed:

You'd never define a particular color, just algorithms for taking some input color and deriving each needed color from that one.

Then the user can say: "I want this file in blue and this one in orange" and the syntax highlighting still calls out the features in a relative way but the absolute colors are used as cues for something else (like test coverage or something from source control).

Ok, maybe doing UI's would be fun after all.

Re:Dark mode in a website with CSS by andy_ppp on Wednesday October 09, 2019 @02:39AM (#21200671)
The problem is our brains represent colour in a very weird way and the algorithms I’ve seen for this always look horrible. I guess maybe training a neural net on this might make the results more human!
Re:Dark mode in a website with CSS by tripzilch on Friday October 11, 2019 @08:18AM (#21223582)
No, what really helps is picking the right colour space to work in. Which is probably CIE-LAB, being constructed especially for the weird way our brains perceive colour, but still also works mostly correct if you treat it as a linear space.