Minimal dark mode styles for Hacker News
Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.
Hacker News still lacks a native dark mode, so the simplest workaround remains a small custom CSS snippet applied through browser extensions like Stylus or Userscripts. The four-line rule uses `invert(1)` and `hue-rotate(180deg)` inside a `prefers-color-scheme: dark` media query to flip light and dark while roughly preserving the site's original colors, with a white background base that the filter turns black. The author notes the technique works on any site but degrades as styling complexity grows, and it also inverts images—acceptable on Hacker News because its styles are basic. Custom CSS is presented as the best option because alternative HN frontends are often slow and break authentication, while server-side proxying risks rate limits or IP bans. A companion rule adds 1.25x to 1.5x zoom on screens wider than 992px to offset the fixed layout and tiny font. What to watch next is whether Hacker News administrators reconsider and ship a built-in dark mode, which would make the workaround unnecessary.
Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.
Named in this story
Hacker News, Stylus, Userscripts