Today, Craig Hockenberry of The Iconfactory writes about the challenge of adapting browser-based web content. That is to say, web page content that you view in an app like Safari. Dark Mode and CSS he talks about changes in the latest Safari Technology Preview:
Luckily the standards groups have been debating this issue for the past several months and have settled on a new media query called prefers-color-scheme. Itâ€™s not available in any shipping browser yet, but thanks to the WebKit team, it’s available in the new Safari Technology Preview.
Obviously Dark Mode has a long way to go before it becomes an expected standard around the web, but Apple supporting in on Mac and Safari is a good start. I bet we’ll hear more about Dark Mode on iOS soon, and I’m curious to see if non-Apple platforms also rise to the occasion.