Comment

Comment by miles

I, too, appreciate HN's reluctance to add new features, and have zealously followed the same approach in maintaining my own tiny corner of the web for two decades.

But dark mode offers such immense retinal relief that a few lines of CSS¹ does not seem too unreasonable, especially since it means not having to trust third party extensions to do the job (though Firefox supports site-specific CSS rules natively: https://superuser.com/a/319322/38084 ).

¹ I arrived at these few lines for my simple site:

  @media (prefers-color-scheme: dark) {
  body {background: #222b39;color: #e1dfdc}
  input,textarea {background: #333;color: #e1dfdc;border: 1px solid white}}
though HN likely requires a far more skillful and circumspect approach, e.g., https://news.ycombinator.com/item?id=23199649 .
parent miles 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton