Six Levels of Dark Mode (2024)
Posted by Akcium 1 day ago
Comments
Comment by omer_balyali 1 day ago
My mental model is as follows:
- Palette: All primitive color values.
- Luminance mode: light and dark modes (what CSS and operating systems call "color scheme").
- Contrast mode: Default and high-contrast modes.
- Color Theme: The named aesthetic identity like "espresso", "summer"... expressed as palette values mapped to semantic roles (surface, primary, text…), defined for each luminance × contrast combination.
For example, a website might have:
- 3 color themes: "monochrome", "espresso", "summer".
- Each color theme might support luminance modes, like "espresso-light" and "espresso-dark".
- Each luminance mode might support contrast modes as well, "espresso-dark-default" and "espresso-dark-high-contrast".
- Palette is all the values that "espresso" color theme consists of including luminance and contrast mode values.
The combinatorial complexity might look scary but most products only need a slice of it: two luminance modes, no contrast modes, one color theme.
Comment by apparent 1 day ago
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.
Comment by Tallain 1 day ago
I appreciate how hard it can be to make a good dark mode; I've spent months building a custom dark theme I term "mid-contrast". It's still WCAG compliant, but easy on my eyes, and I've stuck with the (maybe silly?) requirement of 16 colors only, like Solarized.
Comment by 2ndbigbang 1 day ago
Comment by dotancohen 1 day ago
Actually - there are to a very small extent. But they are near useless, defining only the colours of uncoloured elements.
Comment by duskdozer 1 day ago
Comment by nextaccountic 23 hours ago
not only it wil dark-ify pages that don't support dark mode, it will alter the tone of dark mode pages to a more enjoyable (i like to add some pastel colors)
for dark mode pages that are already perfect, you can disable it on a per page basis
only trouble i had so far is that disabling or enabling happens per-site. so I can't have dark mode on google, disabling it on google maps
Comment by bryanhogan 1 day ago
And just curious, why would using "only" 16 colors be silly?
Comment by Tallain 19 hours ago
I've been spending some time creating a Visual Studio theme using this palette and the way that IDE uses colors is... less than great. Trying to find the right token to change is an exercise in madness, and many things that are visually the same in importance/hierarchy use very slightly different shades for some unknown reason.
Comment by wffurr 23 hours ago
Comment by layer8 1 day ago
In other words, instead of an n x m solution where every web site has to cater to each different user preference, there should be a simplified content view that every web site only has to support in a singular way, and that allows browsers to cater to the various user preferences.
Comment by apparent 1 day ago
Comment by duskdozer 1 day ago
Comment by a96 1 day ago
Comment by f33d5173 1 day ago
Comment by layer8 1 day ago
Comment by hakfoo 1 day ago
There's no reason a webpage shouldn't be as themable as, say, a GTK or Qt based desktop application.
We should be trying to snatch back styling power from the designers and putting it back on the user-agent's side. Let the page look brutalist until the user has chosen an appropriate theme for their needs rather than railroading them into what someone in Marketing decided looked good.
Comment by literalAardvark 1 day ago
It's also more efficient for led matrix backlights.
Edit: sorry, realized this is misleading: my testing was with light vs dark, not something like dark grey vs 00 black
Comment by gruez 1 day ago
No.
https://www.xda-developers.com/amoled-black-vs-gray-dark-mod...
Comment by K3UL 1 day ago
Comment by gruez 18 hours ago
Comment by mudkipdev 1 day ago
Comment by t-writescode 1 day ago
Comment by gruez 1 day ago
Going from dark gray to pure black isn't going to halve your monitor expectancy, if it makes a difference at all. Due to how human perception works something that's merely dark gray is actually orders of magnitude brighter than pure white, or even 50% gray. Therefore most of your burn-in is going to be driven by bright content like photos or white text, not whether you're using 5% gray vs pure black.
Comment by akersten 1 day ago
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.
Comment by WorldMaker 17 hours ago
It can be an interesting discussion to follow: https://github.com/w3c/csswg-drafts/issues/9660
Comment by Zak 9 hours ago
Comment by ChrisMarshallNY 1 day ago
Not sure if it shows up for everyone, but there was a popover under the comic that did all kinds of crazy themes.
Comment by 2ndbigbang 1 day ago
Comment by ChrisMarshallNY 1 day ago
Comment by zamalek 1 day ago
Comment by ethan_smith 1 day ago
Comment by Izkata 21 hours ago
Comment by silverwind 1 day ago
Comment by zamalek 1 day ago
Comment by akersten 1 day ago
on Gnome i've got system-wide dark mode turned on and idk, my Firefox is dark gray until it gets any content. so users have the power and should exercise it to tailor their experience as they wish
Comment by jagged-chisel 1 day ago
Comment by zamalek 1 day ago
Comment by MitPitt 1 day ago
Comment by NSPG911 1 day ago
Comment by pocksuppet 1 day ago
Comment by intronic 1 day ago
Comment by yyy888sss 1 day ago
Comment by gwern 1 day ago
Comment by chrismorgan 1 day ago
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.
Comment by sambellll 1 day ago
Comment by jagged-chisel 1 day ago
Comment by stevage 1 day ago
Comment by andrehacker 1 day ago
Comment by mrexroad 1 day ago
Comment by NooneAtAll3 1 day ago
it was the first time my eyes got comfortable reading his comics
Comment by everybodyknows 1 day ago
Comment by lokthedev 1 day ago