How to Enable Dark Mode in the Browser When Testing Dark Mode Designs

How to Enable Dark Mode in the Browser When Testing Dark Mode Designs

Dark Mode is a staple of modern web apps and an excellent way to better care for our eyes. However, you don’t have to enable dark mode for your entire desktop to test your web app’s dark mode implementation. Here’s how to enable it at the browser-level.


Before we dive in, this might not make much sense. Why wouldn’t you just toggle between dark and light mode at the operating system or desktop level?

Honestly? Because to do so might involve too many clicks and mouse gestures, and doing so in the browser is about one to two clicks at most. Secondly, you might just prefer it or find it quicker and easier.

Either way, here’s how you do it in the top three browsers (by marketshare): Google Chrome (and Chromium), Apple Safari, and and Firefox.

I’ve not included Edge as I don’t run Windows. But, if you could send me a good screenshot with the relevant steps, I’m happy to include it.

Enable Dark Mode in Google Chrome

Enable dark mode in Google Chrome and Chromium

To enable dark mode in Google Chrome or Chromium, navigate to Settings > Appearance. Then, choose Dark in the dropdown next to Mode, near the top of the page.

Enable Dark Mode in Safari

Unfortunately, Safari on macOS, iOS, and iPadOS don’t – natively – support toggling between light and dark mode. However, that’s not to say that you can’t do it; well, you can on macOS. But, you’ll need to use a Safari extension that let’s you do so. Here are three extensions you could use:

Enable Dark Mode in Firefox

Enable dark mode in Firefox

To toggle between dark and light mode in Firefox, open Settings, then navigate to General > Language and Appearance > Website appearance and choose Dark.

That’s how to toggle between dark and light mode in the top three browsers

Of all of them, I like how Firefox implements it the most. But, regardless of your preference, that’s how to do it, without toggling between dark and light mode at the desktop level.


You might also be interested in these tutorials too...

Validate Dockerfiles With One Command
Tue, Aug 27, 2024

Validate Dockerfiles With One Command

Docker is an excellent way of deploying software. But, how do you know if your build configurations (your Dockerfiles) are valid without building them? In this short tutorial, I’ll show you how.

How to Set a POST Variable From a File When Using Curl
Mon, Aug 12, 2024

How to Set a POST Variable From a File When Using Curl

When using curl, how do you set the value of one or more of the POST variable’s from the contents of a file? For the longest time, I didn’t know. But recently I found out. In this post, I’ll step you through several ways you can do it.

Learning Java as a PHP Developer
Wed, Jul 10, 2024

Learning Java as a PHP Developer

Recently, I’ve started to learn Java, after over 20 years since I first learned it. As a, primarly, PHP developer it’s been an interesting experience. PHP is still easier for web projects. Here are some reflections on why.


Want more tutorials like this?

If so, enter your email address in the field below and click subscribe.

You can unsubscribe at any time by clicking the link in the footer of the emails you'll receive. Here's my privacy policy, if you'd like to know more. I use Mailchimp to send emails. You can learn more about their privacy practices here.

Join the discussion

comments powered by Disqus