A developer has published a minimal way to give Hacker News a dark appearance using a browser's custom-style feature. Anton Zhiyanov's stylesheet relies primarily on two CSS filters—inversion and a 180-degree hue rotation—rather than assigning new colors to each part of the long-running technology forum.
The first filter reverses every color channel, turning light areas dark and dark areas light while also changing all other colors to their complements. The second rotates hues halfway around the color wheel, which moves many of those altered colors back toward their original appearance. A white base background becomes black after filtering. The result is a broad page-level transformation rather than a designed theme with individual rules for links, tables and text.
Users can apply the stylesheet with tools that inject custom CSS into chosen websites. Zhiyanov points to Stylus for Chromium and Firefox, or userscript tools on Safari, including iOS. This keeps the original Hacker News site, authentication and navigation intact. It also avoids routing traffic through an alternative front end or a server-side proxy, both of which introduce their own reliability, login or rate-limit issues.
The technique works especially well on a visually simple site. Hacker News has a fixed layout, limited imagery and basic styling, so applying a filter to the whole page produces fewer surprises than it would on a graphics-heavy service. Zhiyanov also suggests increasing page zoom on wider screens to compensate for the site's small type and fixed-width presentation.
There are clear tradeoffs. Page-wide inversion affects images as well as interface colors, which can make photographs and illustrations look unnatural. Hue rotation can partly restore colored text and links, but it does not reproduce every original color exactly. More complex websites may also have layered backgrounds or embedded media that make this shortcut unsuitable. A hand-built theme could exclude images and tune each interface element, but it would require more rules and ongoing maintenance.
The release is a practical tip rather than a change to Hacker News itself. It demonstrates how a general CSS transformation can cover a narrow accessibility and comfort preference with very little code. Because the rule runs in the user's browser, it can be disabled without changing the site or requiring administrator support. For readers who mainly want a darker background and are willing to accept imperfect image rendering, the approach offers a local, reversible option that does not alter account access or depend on a separate service.



