TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Please add a "dark" theme for Hacker News

49 pointsby aperezalbela10 months ago

14 comments

dang10 months ago
What I&#x27;d* like to do is let people upload their own CSS and have HN serve it back to them. Then you can make your own darkmode (or anymode), and people can share them so you can reuse someone else&#x27;s.<p>One question this is contingent on: does there exist a well-defined secure subset of CSS such that we don&#x27;t have to worry about weird vulnerabilities?<p>* actually I think this was originally kogir&#x27;s idea
评论 #41105849 未加载
评论 #41105838 未加载
评论 #41105806 未加载
评论 #41111843 未加载
评论 #41109448 未加载
评论 #41106096 未加载
评论 #41114881 未加载
评论 #41115176 未加载
评论 #41105820 未加载
评论 #41105821 未加载
minimaxir10 months ago
Whenever this topic came up about a decade ago, the argument against dark mode&#x2F;theming was that it added complexity to Hacker News which has the explicit goal of being super simple.<p>Now, with dark mode able to being controlled by CSS media queries and also able to be done automatically according to system preferences, the complexity argument doesn&#x27;t hold. It&#x27;s less complex than the later-added comment collapsing behavior and navigation.
评论 #41106366 未加载
p-e-w10 months ago
The HN theme violates WCAG accessibility standards for text contrast[1] (which you can verify with your browser&#x27;s dev tools), has paragraphs that are almost twice as wide as recommended for readability[2], uses font sizes that are unreadable for people with even slight impairments of visual acuity, and is near-unusable on small mobile devices.<p>I&#x27;m all for improvements to the theme, which have been overdue for a decade, but adding a dark variant is not the most pressing issue, to put it mildly.<p>[1] <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;WAI&#x2F;WCAG21&#x2F;Understanding&#x2F;contrast-minimum.html" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;WAI&#x2F;WCAG21&#x2F;Understanding&#x2F;contrast-minimum...</a><p>[2] <a href="https:&#x2F;&#x2F;www.researchgate.net&#x2F;publication&#x2F;234578707_Optimal_Line_Length_in_Reading--A_Literature_Review" rel="nofollow">https:&#x2F;&#x2F;www.researchgate.net&#x2F;publication&#x2F;234578707_Optimal_L...</a>
评论 #41105712 未加载
评论 #41106385 未加载
roflchoppa10 months ago
someone posted a ublock origin filter a couple weeks ago... ``` !Hacker News dark theme news.ycombinator.com##body:style(color: #CCCCCC !important; background-color: #1A1A1A !important; ) news.ycombinator.com##table:style(background-color: #2B2B2B !important; ) news.ycombinator.com##input:style(background-color: #DFDFDF !important; ) news.ycombinator.com##table, tr, td, .pagetop, .score:style(color: #CCCCCC !important; ) news.ycombinator.com##td:style(border: 1px solid #2B2B2B !important; background-color: #2B2B2B !important; ) news.ycombinator.com##b:style(color: inherit !important; ) news.ycombinator.com##a, .c00:style(color: #eee !important; ) news.ycombinator.com##.c00 a:style(color: rgb(49, 140, 212) !important; ) news.ycombinator.com##.comhead, .subtext:style(color: #828282 !important; ) news.ycombinator.com##.comhead &gt; a, .subtext &gt; a:style(color: orange !important; ) news.ycombinator.com##.comhead font:style(color: #5a5a5a !important ) news.ycombinator.com##.c5a, .c88, .c9c:style(color: #999 !important; ) news.ycombinator.com##input:style(color: black !important; ) news.ycombinator.com##textarea:style(background-color: #E0E0E0 !important; border-left: 12px solid #CCCCCC !important; ) news.ycombinator.com##font[color=&quot;#000000&quot;]:style(color: #a3b72c !important; ) ```<p>can add it as a custom filter.
评论 #41115110 未加载
评论 #41107871 未加载
kennu9 months ago
I think it&#x27;s important to understand that supporting dark mode by default makes websites work properly also in situations where you are not logged in, or you aren&#x27;t using your regular web browser with all its customizations and extensions installed.<p>It&#x27;s very little work and has lots of benefits.
wmf10 months ago
There are browser extensions and userscripts to do this.
评论 #41105696 未加载
评论 #41106622 未加载
评论 #41105763 未加载
satoru4210 months ago
Aren&#x27;t Hacker News users supposed to be able to hack it easily?
评论 #41105778 未加载
insuranceexecut10 months ago
Dark mode, chronological, no click Hacker News: <a href="https:&#x2F;&#x2F;excuse-seven.vercel.app" rel="nofollow">https:&#x2F;&#x2F;excuse-seven.vercel.app</a><p>View the most recent 500 Hacker News articles in chronological order with all their first-order comments in view. Do not click to flip the page, do not click to see the comments.
AnonHP10 months ago
What I’d like is a prioritization of fixing the long neglected UI and UX. Start with fixing accessibility (vision, motor, etc.) first.<p>Dark mode can come after that (some may want dark mode all the time, some may want it to obey system settings, some may want a simple toggle on every screen).
aperezalbela10 months ago
It would be really appreciated for you guys to consider adding a dark theme for HackerNews.<p>The reasons, well, could be added as comments here in the thread. Though, as you may imagine, it&#x27;s mostly because of my eyes when I visit you guys without daylight.
评论 #41105775 未加载
geor9e10 months ago
Try out chrome:&#x2F;&#x2F;flags&#x2F;#enable-force-dark (on any Chromium browser like Chrome, Edge, Brave) to make all websites dark mode
dsq10 months ago
I use Opera&#x27;s night mode on mobile, I think one of the best browsers for out of the box dark mode and text reflow.
randcraw10 months ago
Trivial to do in Brave (for MacOS or iOS).
评论 #41106049 未加载
lovegrenoble10 months ago
+1