X

Here come the dark mode browsers -- and websites

This is a dark web you can get behind -- once developers embrace the ability to bypass glaring white websites.

Stephen Shankland Former Principal Writer
Stephen Shankland worked at CNET from 1998 to 2024 and wrote about processors, digital photography, AI, quantum computing, computer science, materials science, supercomputers, drones, browsers, 3D printing, USB, and new computing technology in general. He has a soft spot in his heart for standards groups and I/O interfaces. His first big scoop was about radioactive cat poop.
Expertise Processors, semiconductors, web browsers, quantum computing, supercomputers, AI, 3D printing, drones, computer science, physics, programming, materials science, USB, UWB, Android, digital photography, science. Credentials
  • Shankland covered the tech industry for more than 25 years and was a science writer for five years before that. He has deep expertise in microprocessors, digital photography, computer hardware and software, internet standards, web technology, and more.
Stephen Shankland
3 min read
Browsers are beginning to support website dark modes so what you see in the browser matches the rest of your PC or phone.

Browsers are beginning to support website dark modes so what you see in the browser matches the rest of your PC or phone.

Stephen Shankland/CNET

If you like your text white on a black background, good news: Browser support for dark mode websites is hitting the big time. Apple built dark mode support into its Safari browser for MacOS and Mozilla followed suit with Firefox. But now dark mode website abilities are coming to Google's Chrome, Microsoft's newly overhauled Edge and Apple's Safari on iPhones and iPads.

Dark modes are a hot item these days. Some people simply like the way they look, but it's not just cosmetic, as people who work at night can attest. The browser support means the web won't be left behind by the dark-mode movement.

Adding dark mode support to all the computing foundations in our lives is complicated, even when operating systems like MacOS and Windows already offer a high-level dark mode option. If you don't believe me, take a look at the details about redrawing icons and recoloring buttons in Apple's carefully considered dark mode advice.

Websites, which can house full-fledged apps these days, add another layer of dark mode complexity. Blazing white websites are a glaring offense if your operating system has dimmed your taskbar or dock and your browser interface is decked out with black title bars and tabs.

Web developers, though, now can add a "prefers-color-scheme" control to their code to fix the problem. That will let compatible browsers pull in specific instructions for things like making text white, making backgrounds just the right degree of dark, picking colors for elements like linked text.

Dark mode browsers arrive

Support for dark-mode websites is spreading:

Browser support is just one part of the equation, though. Website developers will have to support dark modes for them to be widely used. 

Dark mode complications for web devs

It wasn't hard to create a dark mode version of one website, said one design firm, NYystudio107, in a tweet.

But creating dark-mode websites brings a new risk, said Sime Vidas, a web developer and author. He's worried dark-mode websites might not be accessible to readers who need high-contrast designs.

"Implementing dark mode properly basically means having to create an entire new color system from scratch, because even if you re-use the same color in some instances, you still have to ensure that it has enough contrast with the new, dark colors," Vidas tweeted. He'd also like to see better advice for developers about the best way to create dark mode websites.

So dark mode websites will require work. Given the number of people who want dark modes, though, expect the idea to spread.

Originally published June 15.
Update, June 18: Adds information on dark mode website programming challenges.

Watch this: Apple's iOS 13 turns to the dark side