Comment by DenseComet
5 years ago
Unfortunately, there are some of us who also like the solarized type light mode in HN more than dark mode, but we use dark mode at the system level because the OS light mode is awful.
Pure CSS would be quite cool, but we'd probably also need a snippet of JS to add a button allowing to switch between light and dark mode. (There's probably a way to do it without JS that someone will hopefully comment too.)
They could put a preference in the profile page. But I think that switching the theme would be the browser's job.
By using CSS variables, only a few lines of JS are needed- small enough that they can be inlined in the HTML.