Six Levels of Dark Mode (2024)

Akcium 66 points 31 comments April 19, 2026
cssence.com · View on Hacker News

Discussion Highlights (9 comments)

sambellll

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

andrehacker

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

gwern

Glad OP got the tri-state toggle right!

apparent

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.

stevage

It's 8 levels though?

zamalek

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

yyy888sss

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

chrismorgan

> 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.

akersten

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.

Semantic search powered by Rivestack pgvector
5,012 stories · 47,220 chunks indexed