Hacker News new | ask | show | jobs
by sigg3 1088 days ago
> It was pretty sure, that dark mode can only be implemented using JS

I used this in the 90's:

`<body bgcolor="#000000">`

You needed it to really appreciate the sparks from animated fire gifs.

2 comments

Yes you are right you can get dark mode by setting the background to black. But with this media query you get an automated switch between light and dark mode, depending on you browser settings.
Dark mode is much more than just bg color. Font, shadows, borders, selection, navbar, placeholders...
… which creates the kind of “dark mode” that ends up being unbearable. Dark mode does not mean pitch-black background, nor does it mean squeaky-white text color.
Most websites on geocities IIRC were "dark mode" :)
If white on black is unbearable, your screen contrast is miscalibrated. Lower it until comfortable.
If your screen shows pitch black and white both as a nice gray, your screen contrast is miscalibrated and you shouldn't be doing any work involving colors on it.