How to enforce dark mode on sites in Microsoft Edge

Martin Brinkmann
Oct 31, 2019
Internet, Microsoft Edge
|
11

Microsoft implemented a new experimental flag to the most recent version of the Chromium version of  Microsoft Edge that users may set to enforce dark mode on visited sites.

The web browser honors the dark mode setting of the Windows 10 operating system already but that changes the interface of Microsoft Edge only. Websites may still display in light colors.

The latest Canary version of Microsoft Edge includes an option to enforce a dark mode so that sites, most of them at the very least, are displayed in darker colors automatically. Google launched the option earlier this year in Chrome.

Tip: if you run Android 10, you may also enforce dark mode in many apps that don't support it officially.

The following screenshot shows how that may look like on sites. Note that Edge's interface depends on the dark mode setting of the operating system and not the experimental flag that Microsoft added to the browser.

To switch to Dark Mode on Windows 10, go to Settings > Personalization > Colors and switch from Light to Dark there.

Here is what you need to do to enable it:

  1. The feature is only available in Edge Canary at the time of writing (version 80.0.317.1). It will, likely, become available in Edge Beta and Stable at one point in time.
  2. Load edge://flags in the browser's address bar.
  3. Search for dark; this should return the flag Force Dark Mode for Web Contents.
  4. Set the flag to Enabled. Note that Enabled sets the feature to the default. You may pick any of the other dark mode algorithms provided to test which one works best for you.
  5. Restart the Microsoft Edge web browser.

The change should be visible immediately on sites you visit. I tested the feature on a number of sites including Ghacks, YouTube, eBay, Facebook and Wikipedia, and it worked fine on all of these sites.

Some page elements may still show up in light colors. The ads you see on the screenshot above still use white colors and so does the Ghacks logo.

Closing Words

The feature works as advertised in the latest Microsoft Edge Canary version. It needs to be noted that the feature is experimental and that it may be removed from Edge before it ever lands in the Stable version of the browser (which has not been released yet officially).

The setting gives Edge users who prefer dark themes an option to get rid of the majority of light themed sites by turning them into darker themed sites automatically.

Now You: Light or dark, what is your preference and why? (via Deskmodder)

Summary
Article Name
How to enforce dark mode on sites in Microsoft Edge
Description
Microsoft implemented a new experimental flag to the most recent version of the Chromium version of  Microsoft Edge that users may set to enforce dark mode on visited sites.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. mon said on February 10, 2021 at 5:09 pm
    Reply

    I have tried .its working … Thanks !!!

  2. Anonymous said on January 22, 2021 at 10:10 pm
    Reply

    Windows Deactivated itself after installing Canary and force-colors. Now I can’t uninstall Edge or system restore to a point before the Microsoft Edge update to validate windows. Should have just stuck to firefox.

  3. Anonymous said on January 20, 2021 at 3:13 am
    Reply

    STILL WORKS. My eyes thank you.

  4. poe said on September 23, 2020 at 8:24 am
    Reply

    this was exactly what i was looking for. thanks!

  5. anonymous said on November 1, 2019 at 5:50 pm
    Reply

    Does Ubuntu have a dark mode?

  6. Anonymous said on October 31, 2019 at 5:47 pm
    Reply

    Why ghacks doesn’t have a dark theme? It hurts my eyes at night reading site.

    1. David said on November 3, 2019 at 10:49 am
      Reply

      Because you have to enable the night mode on your PC/phone/tablet

  7. pat said on October 31, 2019 at 4:42 pm
    Reply

    Available in the last Brave and Vivaldi also, but not Opera…

    1. Shadess said on November 1, 2019 at 2:38 pm
      Reply

      Don’t do this on the latest Vivaldi! The browser won’t start with it.

      Fix for it:
      https://forum.vivaldi.net/topic/41774/vivaldi-launching-issue-just-after-the-newest-update

  8. Anonymous said on October 31, 2019 at 1:59 pm
    Reply

    ”Light or dark, what is your preference and why?”

    Firefox about:config entrie browser.in-content.dark-mode has not impact web sites view. Some browsers render dark theme and others not. In operating system level (macOS) I use dark theme. If I enable it on browser, then it brakes Noia theme. In example urlbar text is invisible, and again: some browsers have another view (Mozilla based, different versions and settings).

    1. Jhavon said on July 18, 2020 at 10:28 pm
      Reply

      Dark, eyes feel more comfortable to use in the night time

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.