Six Levels of Dark Mode (2024)

cssence.com

70 points by Akcium 12 hours ago


akersten - an hour ago

kind of sad that the CSS specification wound up with this clunky `light-dark(white,black)` thing instead of literally anything more extensible like, `themed(dark(black), light(white), retro(purple))`.

Then you'd be able to have a cool theme dropdown like sites used to have, fully CSS-driven with essentially no JS required, in a compatible and modern way.

apparent - 8 hours ago

I thought this was going to be about how people prefer different levels of blackness for the background in dark mode. I've heard people say that pure black is more battery efficient for OLED displays (but don't know if this is true), and I know some folks prefer a less-inky grey.

I was wondering how there could be six levels though; I'd think 3 or 4 would be the most anyone could notice or care about.

zamalek - 7 hours ago

Is there still no way to prevent the flash bang while waiting for initial content from the server?

yyy888sss - 7 hours ago

Level 9 (or 0): Turn off the computer and go to sleep.

gwern - 8 hours ago

Glad OP got the tri-state toggle right!

chrismorgan - 5 hours ago

> Dedicated files make sense if you do a lot of customization. The browser may ignore any CSS file that does not match the query, so there’ll be one less thing to download.

That’s not how it actually works: in practice, browsers download them all. They may prioritise them differently, but they’ll still download them all in the end.

sambellll - 8 hours ago

Would've been cool if the levels came into effect while you scrolled down the page

stevage - 7 hours ago

It's 8 levels though?

andrehacker - 8 hours ago

Obligatory ? https://xkcd.com/3227/

everybodyknows - 8 hours ago

2024

lokthedev - an hour ago

[dead]

- 6 hours ago
[deleted]