41 points · by brylie · 2y ago · 57 comments
Editing incorrect argument: More importantly, how many allow setting a specific contrast instead of just “dark mode” as-is.
Dark mode should be a set of settings tuned to every user, like glasses. Not a designer’s hallucination about matrix and hackers.
As a matter of fact, I’d like to have similar settings for bright mode as well. Cause designs get out of hand in both modes.
I've been slowly developing it as I get older and one of the most noticeable effects to me is that bright objects on dark backgrounds are becoming blurrier over time. It's most noticeable with lights when driving at night, but I've started to notice it when using dark mode without any additional lighting in the room.
Like in this: https://en.m.wikipedia.org/wiki/Hopf_bifurcation
You cannot view a page about electronic circuits with dark mode on as they blend in with the background.
s=document.createElement('style');
s.textContent=`
* {
color: #2c2 !important;
background: #222 !important;
font-family: arial !important;
}
`;
document.head.appendChild(s);
I use a lot of bookmarklets, so I wrote a tool to convert clean code to bookmarklets and vice versa:But widgets like this don't work as well as native support
https://chromewebstore.google.com/detail/dark-reader/eimadpb...
In a broader sense, the whole design of a site could be selectable via the browser. Similar to how CSS Zengarden works:
But with layouts that are stored on the user's computer and applicable to every website.
But you cannot just flip colors - pictures for example have to fit their background, for not breaking style.
A bookmarklet can change images too.
We would just have to decide on an algorigthm for the images.
For example here on HN - the algo could detect the similarity between the orange in the title bar and the orange in the Logo. And change the logo accordingly.
Or the site could add some semantic info on how the colors should behave.
Why can't we just have full on theme support? We've had this before on many websites.
Dark mode is not as good for your eyes as you believe (wired.com)
One of my old CS teachers would rant about googles evil choice of white background.
Modern displays do use a backlight, but might not drive it at full brightness for mostly not-white displays.
How - you need an OLED display for this to be a thing, The ones with backlight (well the extreme vast majority) prevent the light from going through.
>One of my old CS teachers would rant about googles evil choice of white background.
That's awkward - get a display and measure the input current with different modes.