frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Safari introduces Adaptive Dark Mode in 27.3

https://webkit.org/blog/18541/introducing-adaptive-dark-mode/
91•paddingtone•44m ago

Comments

guessmyname•35m ago
• As a user: great

• As a web developer: what a nightmare, now your website will look different to different people, as if having to support multiple browser engines and multiple screen rations, and multiple platforms, etc. was not a big pile of problems already.

• As someone who doesn’t like dark-mode due to eye strain: good-good… for people who like it ¯\_(ツ)_/¯

vulcan01•31m ago
Re: web developer

> The HTML <meta name="color-scheme" content="light only"> tag lets browsers know that 1) this page supports light mode and 2) should only be displayed in light mode.

Spivak•30m ago
Even as a developer I'm all for it, go even harder. We may eventually reach the promised land where the user agent defines so much of the final appearance things like "pixel perfect design" or beating standard controls into within an inch of their lives to fit some design system are a thing of the past.
mortenjorck•30m ago
I like to think of it as a gentle encouragement to finally implement prefers-color-scheme in web applications.

(I say this as a designer who has spent countless hours on dark-mode palettes as well as someone who has the automatic circadian toggle enabled everywhere.)

apsurd•30m ago
disagree. the web specifically is built as a dynamic medium for consumption. The fluid nature is the point. Yes, it is harder for developers to force a consistent experience, but as a professional web dev, we should not treat the web as a fixed medium.
cluckindan•27m ago
As long as a client needs to approve a layout, that is not happening
Telaneo•23m ago
Sounds like a problem with the client.
cluckindan•18m ago
A web agency is not going to start questioning the brand book of a 100x larger client.
threetonesun•15m ago
Wait until you learn I can change the font size and even override the site CSS on my own machine!
isityettime•8m ago
> what a nightmare, now your website will look different to different people

That's what the web has always been. People don't all have the same display types, the same subpixel layouts, the same display sizes, the same DPIs, the same fonts, the same zoom levels... People use reader modes, global restyling extensions, per-site custom style sheets, full screen magnifiers, bounded/partial magnifiers, screen readers, OS high-contrast modes... the web has never been a fixed canvas that you get to paint on and then hand to users.

kps•6m ago
As a web developer, all you have to do is support `:prefers-color-scheme`.
_boffin_•32m ago
> Safari prevents websites from detecting when Adaptive Dark Mode has been applied. JavaScript that queries CSS colors will get the original authored colors, not the transformed ones. Any images drawn into canvas render in their original form.

So… the browser is now intentionally lying now. Ain’t that great.

kvuj•29m ago
> So… the browser is now intentionally lying now. Ain’t that great.

To the server. I'm 100% behind this. The unholy amount of control websites have over our web browser should go down, not up.

giancarlostoro•26m ago
> To the server. I'm 100% behind this. The unholy amount of control websites have over our web browser should go down, not up.

Especially when so many lack reasonable ADA compliance.

mortenjorck•28m ago
This is more or less unavoidable to avoid breaking poorly-architected front-ends that rely on styling to handle logic.
neilalexander•27m ago
One less thing to fingerprint.
mirashii•27m ago
Browsers already intentionally lie all the time, and have had to for years, because fingerprinting and tracking by various ad networks and bad actors has been rampant.
jordand•32m ago
I was looking through 'Dark Mode' browser plugins for viewing websites last week, and the options aren't great. The 'Dark Reader' plugin that's everywhere sends a lot of silent web requests in the background that seems strange given its mostly just CSS tweaks.
cluckindan•29m ago
Bad: it’s tracking you

Worse: it’s attacking you

Worst: it’s attacking someone else as you

DuncanCoffee•22m ago
I use stylus on firefox, you can search for styles or write them yourself. I often write dark mode for websites, I'm using a dark mode for hn right now. Also "large mode", it's ridiculous having websites on a 32" limited to 900 px
figmert•12m ago
I'd be curious to know more about this. Dark Reader, at least on Firefox, is a recommended addon, which means it gets additional scrutiny by Mozilla. I do agree though that if it does additional web requests, it seems fishy. Do you have any details on where these requests go to or how you found them?
inshard•31m ago
Thank you, whoever led this!
cluckindan•28m ago
On the contrary, screw you whoever led it. Who even wants authored styles nowadays.
arcanemachiner•20m ago
"Authored"? It just applies a set of rules to the existing stylesheet. It's not like they're customizing it for different websites.
bla3•27m ago
I know it's always been this way, but it's weird to me that Apple uses the WebKit blog for Safari product announcements.
hahnchen•25m ago
Does it go the other way? What if I want light mode on a website that looks dark
kps•14m ago
You're out of luck if, like me, you have a problem with astigmatic halation. All the cool kids use dark mode.

iOS since 26 has been presenting parts of the system in dark mode despite having the device set to light only. One of the ‘best’ is that launcher groups switch to dark background, but they forgot to switch the text colour, so app names are unreadable. I had hoped iOS 27 would fix it, but no, so I'm switching to Android.

I_am_tiberius•24m ago
Is this a headline form the year 2015?
reader9274•24m ago
Finally a fix for HN
kkotak•13m ago
Please! I don't use Safari so this won't help me, but switching back to HN from other mostly dark themed sites hurts my eyes :(
Transcendium•24m ago
I fear this will lead to a lot of broken websites. That seems to be the case with a lot of the browser plugins that provide the same functionality.
arcanemachiner•21m ago
There's a mode like this in an Android Chrome fork called Cromite that works surprisingly well. Most of the other options do suck though.
kevincox•16m ago
1. It's opt-in. The user is choosing the occasional broken site over light themes.

2. The site can always provide their own dark theme if the automatic one is broken.

AndrewStephens•24m ago
This is a good thing.

I added dark mode to my blog a while ago and it was a little trying to do properly.

You can implement a half-assed dark mode yourself by adding the following css.

  @media(prefers-color-scheme: dark) {
    body {
      filter: invert();
    }
  }
All your images will be inverted as well, which doesn’t work well for photos.
madeofpalk•19m ago

   filter: invert() hue-rotate(180deg)
For images. Works better for illustrations to get the vibe of the original colours than actual photographs.
sheept•19m ago
The opt outs mentioned in the article, like

    color-scheme: light dark;
should be sufficient to enable dark mode for users who prefer dark mode.

For icons, ideally they’d be SVGs controlled by currentColor, but that may not be feasible or convenient depending on your setup.

grounder•22m ago
I've always wanted to use Safari as my default browser. I just need them to fix the disappearing favicons in the sidebar tabs. Apple: please fix.
JulianPaul•21m ago
Am I still the only one who doesn't use dark mode? My astigmatism can't take it
madeofpalk•21m ago
No.
isityettime•20m ago
Is your astigmatism uncorrectable?
sheept•16m ago
Even if it were, it’s easier and more reasonable to fix your app to work with your users, than fixing your users to work with your app.
kps•10m ago
Not them, but my left eye isn't fully correctable. The average dark mode site looks like I'm driving the Las Vegas strip in the rain.
figmert•15m ago
For me I cannot deal with dark mode in bright environments, but equally it's fairly hard (though less hard) when using light mode in dark environments. It's why Dark Reader has been such a huge quality of life improvement for me.
redwall_hp•3m ago
kickingvegas•21m ago
FYI, light-dark() in CSS is a thing now.

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...

kps•13m ago
And `:prefers-color-scheme` has been supported by all major browsers for seven years.
jansan•8m ago
And broken in Chrome since the beginning:

https://issues.chromium.org/issues/366412383

kulahan•2m ago
So I guess it hasn’t been supported anywhere in a sense.

Safari and Firefox are pretty small.

nsoam•20m ago
I want the opposite. I suffer from astigmatism, which makes white on black hard to read. I wish Safari could turn dark mode websites into light mode websites.
roflchoppa•19m ago
take the wikipedia, no more flashbangs for me HA!
sheept•13m ago
Wikipedia already supports dark mode as a feature of the default Vector 2022 skin.[0]

[0]: https://en.wikipedia.org/wiki/Wikipedia:Dark_mode

vinnymac•17m ago
If this ends up working anything like the Gmail Dark Mode implementations on iOS and Android that have drove developers insane and users mad, then I expect both parties to become upset. It is easy to view this as a win for users, but the moment this doesn't work well in various scenarios, the vocal minority will punish the developers of the web as if they did something wrong here, and everyone loses.

Here is to hoping that is not the case, and they did a good job with the implementation in Safari, but I have my suspicions.

aaomidi•16m ago
>will punish the developers of the web as if they did something wrong here

Yes, developers can solve this by simply implementing dark mode.

vinnymac•14m ago
Your imagination for what can go wrong seems limited in my eyes. I've been in the trenches where a specification was not followed, or was wrong from the beginning. That can be the case here.
marcellosso•15m ago
I use dark mode for everything, so I'm pretty happy about this. Some sites were clearly designed to be light, and forcing dark on them could break the experience, but that's exactly what `color-scheme: light only` is for, and it's good that Safari respects it. Other than that it feels like a win-win to me: great for dark mode users, and for devs not much changes, you just add "light only" if you don't want your site to be affected.
joshuat•14m ago
This is surely going to be optional, so it won't impact me in the slightest, but it is a pet peeve of mine when browsers (or browser extensions, looking at you 1Password) alter the UI of websites away from how they were originally designed without explicit instruction to do so.

This sounds like it meets that threshold, it will just surely be a hit-or-miss mess. Hopefully if it makes it to iOS it will drive more site owners to adapt to `prefers-color-scheme`.

JoshTriplett•8m ago
Browsers are user-agents, not website-agents. By way of example, if a website shows ads or does tracking, I will absolutely alter it to my liking.
russellbeattie•14m ago
"Websites aren't making dark mode versions! WE'LL DO IT FOR THEM!"

This has to be the result of some passion project by yet another whacko dark mode fanatic (you know who you are). Non-standard, assuredly buggy, and basically a maintenance nightmare. Good luck with that craziness.

Can we have another setting which turns dark websites into actually readable light designs for adults?

cyanydeez•13m ago
Do they plan to introduce compliance with PWAs any time this decade?
nouman0x45•11m ago
damn
loloquwowndueo•6m ago
Does this also allow me to lighten sites that default to extremely hard to read dark mode?

I wish the crusade to make everything dark would end.

So do others. https://xkcd.com/3227/

greazy•2m ago
Everyone should checkout Dark Reader extension, it's been doing adaptive dark mode for many years, and it's customisable. It even does light mode too. Using it in Firefox on HN right now!
Reason077•1m ago
Hacker News itself is a prime example of a website that doesn’t support dark mode, but could do so trivially (and, IMO, would look so much better if it did!)
drusepth•1m ago
Really happy to see this. Users begged me to add dark mode to my sites for years and it's been nothing but a pain to support since adding it. If other browsers pick up something similar, I look forward to the day I can finally remove "manual" dark mode support and just leave it up to the browser.
morsch•25m ago
It's the user's agent
kccqzy•25m ago
Browsers lie all the time. Browsers also prevent sites from getting the color of a link because visited links can be shown in a different color and this can be used by the site to tell if a user has ever visited a link.

Don’t you love it when browsers lie to websites to enhance the user’s privacy.

I find dark mode is better for astigmatism, personally. It also isn't hellish if you have floaters and migraines, unlike light mode.

The preference, either way, is an important accessibility feature.

Did Gary Huber and I invent screen-space reflections on the Amiga in 1995?

https://alphapixeldev.com/screen-space-reflections-1995-world-construction-set/
1•XenonofArcticus•2m ago•1 comments

Understanding Linear Algebra [pdf]

https://scholarworks.gvsu.edu/cgi/viewcontent.cgi?article=1026&context=books
1•ibobev•3m ago•0 comments

Software gardening: can enterprise development look like industrial agriculture?

https://blog.chaoticgood.computer/content/notes/software-gardening
1•spelkington•4m ago•0 comments

Krea 3 Technical Report

https://www.krea.ai/blog/krea-3-technical-report
4•mattnewton•5m ago•1 comments

Ten cars that will last forever [video]

https://www.youtube.com/watch?v=qIz-5gO01OI
1•teleforce•5m ago•0 comments

Show HN: MyVideoStation, a morden recreation of Synology's VideoStation

1•liyu1981au•6m ago•0 comments

Terminal-Mac: A separate macOS desktop for computer-use agents in your terminal

https://github.com/govijr/terminal-mac
1•handfuloflight•8m ago•0 comments

Machinists > Tailors

https://pauldambra.dev/2026/10/machinists-not-tailors.html
2•rbaudibert•9m ago•0 comments

Show HN: A browsable gallery of Nvidia's 2,677 free SimReady 3D assets

https://simready.geronimo-labs.com/
1•g58892881•11m ago•0 comments

748 Open-source crypto trading strategies with per-stage validation report cards

https://github.com/CacheCarti/Crypto-Strategies
1•Cachecartii•13m ago•0 comments

Show HN: Business days calculator that shows which days it skipped

https://instantfreetools.com/business-days-calculator/
1•raxsoft•16m ago•0 comments

Ask HN: What is Google Flights' business model and has it changed recently?

2•lastofthemojito•16m ago•0 comments

Ask HN: How is Google's Gemini chat search so inexcusably bad?

1•gradus_ad•20m ago•1 comments

Learn Real-World Penetration Testing: Hands-On Ethical Hacking Crash Course

https://www.freecodecamp.org/news/learn-real-world-penetration-testing-hands-on-ethical-hacking-c...
1•ibobev•20m ago•0 comments

I Reverse Engineered TikTok

https://twitter.com/ayoships/status/2117650684774580249
1•redbell•21m ago•0 comments

Elastic spheres can walk on water (2016)

https://pmc.ncbi.nlm.nih.gov/articles/PMC4743002/
1•laybak•22m ago•0 comments

Show HN: Xecrets Ez – open-source mobile file encryption

https://github.com/xecrets/xecrets-mobile
1•svantex•22m ago•0 comments

TCP vs. UDP Download Speed?

https://tcp-vs-udp.com/
3•ytaudiobar•23m ago•0 comments

The Jet Programming Language

https://github.com/JetJet13/Jet/tree/main
1•jgeorgesYC•23m ago•1 comments

Show HN: Shot-butcher: iOS, ipados, macOS apps screenshot maker skill

https://graphicmeat.com/shot-butcher
1•spacecash21•23m ago•0 comments

Using Fable to one-shot weights outperforms training (97.8% vs. 94.6%)

https://twitter.com/jacsebl/status/2117606206764175543
1•nthypes•24m ago•1 comments

Superhuman Hardware Design Is the Easy Part

https://a16z.com/superhuman-hardware-design-is-the-easy-part/
1•gmays•25m ago•0 comments

Flarum 2.0 is released. Go upgrade your forum

https://discuss.flarum.org/d/40026-flarum-20-is-released-go-upgrade-your-forum
1•DASD•28m ago•1 comments

High-Speed Decision Pipelines: Jev and Prefill-Only Inference from Scratch

https://www.freecodecamp.org/news/high-speed-decision-pipelines-jev-and-prefill-only-inference-fr...
1•ibobev•28m ago•0 comments

Anthropic's annualized revenue run rate peaked back in July 2026

https://twitter.com/FinanceLancelot/status/2109024272572182722
1•g42gregory•28m ago•0 comments

Google reCAPTCHA on archive.is asking to scan a QR with a mobile device

3•linuxhdr•29m ago•0 comments

Technological Threat (1988) [video]

https://www.youtube.com/watch?v=t-IbidkpD74
1•Gravityloss•29m ago•0 comments

iPhone 18 rumors suggest a bigger battery, higher price next year

https://www.theverge.com/tech/1025748/apple-iphone-18-rumors-price-hike-battery
4•dadadavid•32m ago•0 comments

The Internals of PostgreSQL

https://www.interdb.jp/pg/index.html
9•ibobev•32m ago•0 comments

More daily API calls than Google searches, now applied to LLM inference

https://inference.alchemy.com
9•palmasi•33m ago•0 comments