News for hackers. Stuff that matters.
Re:The Future of CSS: Easy Light-Dark Mode Color Switching w... by LeonB on Monday October 09, 2023 @08:57PM (#37827420)
If I look at the times I’ve implemented dark mode — I see that the effect will be:

1. Less lines of code (seems like a good thing)

2. I will still need to use prefers-dark-mode for some of my changes.

Thus — the concept count is ratcheted up by 1 more thing, and no concept is taken away.

The “concept count” is ridiculously high already.

They’re spending money from an overdrawn account.

If you want to permanently increase the number of things that a bunch of people must learn, it has to have more value or power than this.

Re:The Future of CSS: Easy Light-Dark Mode Color Switching w... by bramus on Wednesday October 11, 2023 @04:21AM (#37842141)
> I will still need to use prefers-dark-mode for some of my changes

Can you detail what those would be? I’m curious to know :)

Re:The Future of CSS: Easy Light-Dark Mode Color Switching w... by LeonB on Thursday October 19, 2023 @09:03AM (#37942319)
Sorry I missed this question earlier.

I may turn down the brightness on images, generally, in dark mode. (Using a filter).

And have some classes that mean “don’t alter the brightness of this image, in dark mode”

And there may be other images which I will invert the color of. For example any image that is basically black text on a white background — it’s better to invert it completely rather than just lower the brightness.