Rendered at 21:40:37 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
HelloUsername 12 hours ago [-]
On iOS, the browser Firefox, Brave and Duckduckgo have this function builtin, without an extension. On macOS, you can change color in settings of Firefox (without extension), and recently 'Safari introduced Adaptive Dark Mode' (https://news.ycombinator.com/item?id=50358562). And Ladybird (https://news.ycombinator.com/item?id=50614249) also has builtin dark mode support :D
gib444 11 hours ago [-]
> On macOS, you can change color in settings of Firefox (without extension),
If the site doesn't support prefers-color-scheme, then the only way is by using System Settings -> Accessibility -> Invert Colours I think?
It has no force-dark feature like Chrome as far as I can tell
11 hours ago [-]
HelloUsername 11 hours ago [-]
At 'about:preferences#accessibility' you can setup custom colors at 'website contrast'
I remember having performance issues with it at some point (maybe on Firefox), but on my current Chromium setup it's fairly nice and disabling any sites that look odd is also easy to do! No issues on HN.
Of course, supporting prefers-color-scheme is a good practice regardless.
gib444 9 hours ago [-]
I used to use it but I recently purged most addons that need 'access all your data for all websites'. Too much blast radius in this current climate
Developer of Hack here. Hope you enjoy the bug update I released this morning! It optimizes it for iPhone Duo too with proper Split View (list of posts on left and comments on right). And lots of tweaks and fixes for iPad, macOS.
Btw it's available on Android too.
ralgozino 12 hours ago [-]
You can style pages using uBlock Origin too, I configured the following custom filter under My Filters to:
1. Increase the font-size
2. Remove the white background for light mode
3. Respect system dark mode and have a nice dark theme
open the menu via the 'uBlock Origin' Button (not Browser extension Settings) ->'Open the dashboard' -> paste plain text block from above -> 'Apply changes'
looking good, thank you!
wgx 11 hours ago [-]
I do my dark mode with 1 VERY hacky ublock origin rule:
I have a simple solution that meets my needs on Firefox iOS. With my topcolor set to eeccff, and the browser setting 'website dark mode' set to 'on', I get a darkmode page with the pink topcolor inverted to an ergonomic dark aubergine.
lumpa 13 hours ago [-]
Thanks, the snippet to zoom the page on wider screens worked a charm on Firefox with Dark Reader.
feerouter 11 hours ago [-]
One small addition if you use the `invert(1) hue-rotate(180deg)` trick across other sites too: adding a second `img, video, svg, picture { filter: invert(1) hue-rotate(180deg); }` rule double-inverts media elements back to their normal colors. Not needed on HN itself since there are almost no images, but it saves a lot of broken thumbnails if you apply it more broadly.
ezrabuenk 8 hours ago [-]
I just use the "harmonic" app on Android, it's fantastic!
eproxus 8 hours ago [-]
I only use https://hcker.news nowadays, which come with a built-in dark mode.
codessta 4 hours ago [-]
Same. hcker.news is the best
kleiba2 12 hours ago [-]
I regularly have the opposite problem: for some reason, my eyes cannot handle dark mode. Like, it literally takes me a second or two after I looked at a dark mode render to see properly again. I think it's just age because I had no problem coding on MS-DOS in white-on-black in the olden days.
That said, I don't understand the obsession with dark mode. Like, the vast majority of texts I have encountered in my life, books, papers, letters, etc., are black on white. So why dark mode? People tell me it's different on screens because of reasons. I really think it is more of a fad, like, if you wanna be cool, use dark mode. Unfortunately, I will never be cool because of my poor eyes.
I am lucky, however, in the sense that with a "reader view" built into my browser, I can quite easily turn dark-mode websites into something I can actually read. I think it would be fair if that worked the other way around too, for people who prefer dark mode. But wait, I never actually checked, but perhaps you can configure the colors of "reader view"?!
urgentcoconut 12 hours ago [-]
You aren’t alone in this. I like the look of dark mode and keep it on my phones as they have OLED panels. But when I need to get work done … ie on my computers, there’s no room for light mode
I just can’t distinguish text in dark mode. It’s likely got something to do my eyesight since I’m near sighted.
xnorswap 11 hours ago [-]
I'm with you on this, it's a particularly nasty habit of LLMs to build sites in dark mode without a light mode, or defaulting to dark mode instead of just respecting the user system choice.
frereubu 12 hours ago [-]
I'm the same. I have really strong after-images when I've been reading in dark mode for quite a short time, and they get in the way of the reading itself because I can see them shift as my eyes move down each line.
The other problem I have with dark mode is if you're working with dark windows, then go to open a website, the vast majority of which are light mode, you get blinded.
amoss 12 hours ago [-]
Paper isn't an emissive light source so the predominant white areas are not any brighter than the environment. A screen is emissive and so lots of white areas increase the light output. This is my personal take on it, other people may have different reasons. I find it tires my eyes more quickly to stare at light-mode screens than dark mode.
handoflixue 12 hours ago [-]
Mostly I think people care about consistency - if you mostly use dark mode, then light mode is a sudden blinding flash. If you mostly use light mode, dark mode requires you to squint as everything suddenly goes dim.
Dark mode is also very nice for those working in low-light environments, so that your dark vision isn't ruined when you need to get up and attend to other errands. With the rise in Work From Home and flexible schedules, I suspect there's a lot of hackers writing code at 2 AM in very badly lit rooms.
kleiba2 11 hours ago [-]
> Mostly I think people care about consistency
Perhaps, but it doesn't help me - I can only look at a dark mode page for a brief second before I feel my eyes giving up. This might well be because I'm usually coming from a light website, but I don't know how I could make sure that I have a consistently dark UI so such changes never occur.
But again, to me there's no real appeal in dark mode, I like good old black-on-white, and for the rest, there's reader view (on the web, most of the time).
handoflixue 8 hours ago [-]
I'm not trying to sell you on it, but you said you didn't get the appeal and so I'm offering an explanation for some of the logic behind it.
That's kind of my point - consistency. A lot of apps will respect the OS-level light/dark mode settings, and most major apps have a light/dark mode setting of their own, so it's pretty easy to set up if you wanted to (which I get it, you don't)
It's also great for phones, which are often used in a low-light environment.
silversmith 12 hours ago [-]
> I suspect there's a lot of hackers writing code at 2 AM in very badly lit rooms
Well then turn on the lights. Take care of your body, if you expect to use it for more than next couple months.
frereubu 12 hours ago [-]
I like the refusal of HN to do anything about this - I come here partially because of the ascetic approach to its design. If they listened to everyone over the years the site would probably be some kind of bloated React mess, and if there's anywhere that people can roll their dark mode surely it's HN (as the linked post and many comments here prove...)
krapp 11 hours ago [-]
>If they listened to everyone over the years the site would probably be some kind of bloated React mess,
No it wouldn't. Literally no one here has ever asked for HN to become some kind of bloated React mess. The most common complaints people have are simple readability and usability issues, which are reasonable for a text based site with an aging demographic.
The paranoia people have around here that even the smallest change to the layout will lead to "turning into Reddit" or something has always been weird to me. As if you can't have both form and function.
frereubu 11 hours ago [-]
Fair point - that was hyperbolic. But I still think my central point stands. Its simplicity makes it easy to change. I always have it set to 110% zoom to make it more comfortable to read. It's not like it's hard to tweak.
krapp 11 hours ago [-]
I suppose people want a setting that will persist across devices, which a userscript wouldn't.
Gualdrapo 11 hours ago [-]
Bring the downvotes but it seems to me at least a good chunk of said aging demographic is the main demographic against said readability and usability tweaks, because "content density" and whatnot.
Anyhow, it'd be really easy to add a couple of `<input type="radio">` and make them toggle a css-powered dark mode, but then again I'd change the whole thing to use semantic html instead of `<table>`s, but people here would crucify me for that while saying all websites should be built upon `<table>`s.
krapp 10 hours ago [-]
The funny thing about the tables and spacer gifs is that pg did it to be contrarian, because the standard even at the time was an HTML list but he believed that was antithetical to the "exploratory programming" spirit he was after[0]. And people will defend it as some deep wisdom despite it being an arbitrary and objectively wrong choice that can only churn unnecessary render time and make editing the site a PITA.
People need to learn the difference between minimalism, which is intentional, and pg just not giving a damn about something 20 years ago.
With luck, 2027 will be the year of dark mode in HN. Gonna be bigger than AI!
layer8 11 hours ago [-]
Noir works well on iOS Safari.
zurfer 13 hours ago [-]
@dang please. A little "dark"/"light" in the footer.
etatester 13 hours ago [-]
No need. Just add the media query. Your OS/browser already provides "a little dark/light" toggle.
aunderscored 12 hours ago [-]
No, this is not good enough. I should not need to modify my os because I do not like your theme. The toggle should use the current os state as a default ('auto'), but do not remove autonomy because someone has a top-level switch. Just respect where that switch is first.
layer8 11 hours ago [-]
There is a need as long as browsers don’t universally support per-website dark/light preferences, because not all dark modes are created equal, so you want to use a dark-mode extension that implements your particular style preferences (such as pure black background) discretionally per website, and that works better (or only works) when it is based on the website’s light-mode styles. (That’s also why the current light-only HN works well when using such an extension.)
Ideally, dark mode would be purely a built-in browser feature instead of a website-specific style set, but here we are.
brettermeier 12 hours ago [-]
[dead]
Cider9986 13 hours ago [-]
@dang does nothing. You can email hn@ycombinator.com.
Personally I like oj-hn.com but I wouldn't be opposed to a built in one.
leoff 11 hours ago [-]
this is not possible. the technology isn't there yet
jonplackett 11 hours ago [-]
The alternative would just be to, you know. Add a dark mode.
For people (like me) with bad contrast vision due to mild cataracts - it would be really nice.
WithinReason 13 hours ago [-]
You can put this in a bookmark and click it on any site to swap light/dark:
It does slow down page rendering on some browsers though
sunny_maria 11 hours ago [-]
[dead]
alex8889 13 hours ago [-]
Edge and Chrome have a flag that does roughly this for every site, auto dark mode for web contents. I think it tries to leave photos alone instead of inverting everything, which helps on heavier pages.
LoganDark 13 hours ago [-]
Safari will have this too, as of version 26.3 (still in beta currently)
etatester 13 hours ago [-]
The fact that HN devs still refuse to add 3 lines of CSS makes me think nobody actually uses the website nor cares.
handoflixue 12 hours ago [-]
In fairness, the site is called Hacker News. If you can't hack it (as in, add the feature yourself), why would they want to cater to you? There's multiple numerous helpful responses explaining how to DIY in this thread if it actually bothers you.
If the site doesn't support prefers-color-scheme, then the only way is by using System Settings -> Accessibility -> Invert Colours I think?
It has no force-dark feature like Chrome as far as I can tell
I remember having performance issues with it at some point (maybe on Firefox), but on my current Chromium setup it's fairly nice and disabling any sites that look odd is also easy to do! No issues on HN.
Of course, supporting prefers-color-scheme is a good practice regardless.
Btw it's available on Android too.
1. Increase the font-size 2. Remove the white background for light mode 3. Respect system dark mode and have a nice dark theme
Snippet (hopefully HN renders it ok):
You can tweak them as you please :)open the menu via the 'uBlock Origin' Button (not Browser extension Settings) ->'Open the dashboard' -> paste plain text block from above -> 'Apply changes'
looking good, thank you!
here are some pictures:
https://gist.github.com/dorianmariecom/3ce3790f4a99e88219e19...
https://userstyles.world/style/1898/hacker-news-dynamic-dark
That said, I don't understand the obsession with dark mode. Like, the vast majority of texts I have encountered in my life, books, papers, letters, etc., are black on white. So why dark mode? People tell me it's different on screens because of reasons. I really think it is more of a fad, like, if you wanna be cool, use dark mode. Unfortunately, I will never be cool because of my poor eyes.
I am lucky, however, in the sense that with a "reader view" built into my browser, I can quite easily turn dark-mode websites into something I can actually read. I think it would be fair if that worked the other way around too, for people who prefer dark mode. But wait, I never actually checked, but perhaps you can configure the colors of "reader view"?!
I just can’t distinguish text in dark mode. It’s likely got something to do my eyesight since I’m near sighted.
The other problem I have with dark mode is if you're working with dark windows, then go to open a website, the vast majority of which are light mode, you get blinded.
Dark mode is also very nice for those working in low-light environments, so that your dark vision isn't ruined when you need to get up and attend to other errands. With the rise in Work From Home and flexible schedules, I suspect there's a lot of hackers writing code at 2 AM in very badly lit rooms.
Perhaps, but it doesn't help me - I can only look at a dark mode page for a brief second before I feel my eyes giving up. This might well be because I'm usually coming from a light website, but I don't know how I could make sure that I have a consistently dark UI so such changes never occur.
But again, to me there's no real appeal in dark mode, I like good old black-on-white, and for the rest, there's reader view (on the web, most of the time).
That's kind of my point - consistency. A lot of apps will respect the OS-level light/dark mode settings, and most major apps have a light/dark mode setting of their own, so it's pretty easy to set up if you wanted to (which I get it, you don't)
It's also great for phones, which are often used in a low-light environment.
Well then turn on the lights. Take care of your body, if you expect to use it for more than next couple months.
No it wouldn't. Literally no one here has ever asked for HN to become some kind of bloated React mess. The most common complaints people have are simple readability and usability issues, which are reasonable for a text based site with an aging demographic.
The paranoia people have around here that even the smallest change to the layout will lead to "turning into Reddit" or something has always been weird to me. As if you can't have both form and function.
Anyhow, it'd be really easy to add a couple of `<input type="radio">` and make them toggle a css-powered dark mode, but then again I'd change the whole thing to use semantic html instead of `<table>`s, but people here would crucify me for that while saying all websites should be built upon `<table>`s.
People need to learn the difference between minimalism, which is intentional, and pg just not giving a damn about something 20 years ago.
[0]https://news.ycombinator.com/item?id=21910384
Ideally, dark mode would be purely a built-in browser feature instead of a website-specific style set, but here we are.
Personally I like oj-hn.com but I wouldn't be opposed to a built in one.
For people (like me) with bad contrast vision due to mild cataracts - it would be really nice.