• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Opera keeps forcing dark mode on localhost

    Opera GX
    dark mode
    2
    3
    413
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • akut
      akut last edited by akut

      I'm working on my first website with html, node, etc.
      Since I don't know what I'm doing I rely heavily on ChatGPT, so I'm sorry if this a very stupid mistake. But I don't acctually think it has something to do with my code. Here is the problem:

      I run a node server (server.js), then I can see my website at http://localhost:3000

      using edge as browser all colors of the website are as I would expect. Using Opera they are all darker or i.e. black text got turned in to white. So it sounds like Opera is forcing a dark mode.
      It wasn't allways like this. I even think I misclicked something when I wanted to cklick on "analyse element". I think it was then that it started showing the wrong colors. But I don't know what I clicked and also not how do undo it.

      I have the theme set to dark for Opera and I would like to keep it like this. I don't have "force dark site" enabled. Chaining the theme to light did have an effect either.
      Also disabeling "Enable Force dark theme on pages from Settings and Easy Setup" and "Auto Dark Mode for Web Contents" under "opera://flags" had no effect either.

      Also I don't knwo if that is related but sometimes it still used some old chached version of my html, css, etc files even after reload. I this cases I used the incogni winodw. But for the dark mode problem even restarting my pc did not help.

      Any cule what is going on?

      Reply Quote 0
        1 Reply Last reply
      • akut
        akut last edited by

        Okay I mangaged to solve it.

        Somehow I managed it to aktivate force dark mode only for http://localhost even though the feature "force dark mode" was turned off. Under opera://settings/content/forceDarkMode I was able to delete it again. Now everything is back to normal.

        I'll leave the post here for others that might have the same problem

        Reply Quote 0
          ThieuMa-dono 1 Reply Last reply
        • ThieuMa-dono
          ThieuMa-dono @akut last edited by

          @akut My hero 🙏

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-2025