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 forced dark mode issues with svg fill color

  • Opera forced dark mode doesn't consider the fill color of svg objects.

    Given this situation:

    <div>
    <svg>
    <path d="something"></path>
    </svg>
    </div>

    With this css:
    div {
    color: black;
    fill: currentColor;
    }

    Opera GX forced dark mode would change the color to white, however, the fill color would stay black somehow. This needs to be resolved as many websites rely on the fill color like that.

  • Use Dark Reader extension, it's quite better than Opera's built-in.

  • @david27 Might be true, yet I'm requesting this as a developer. Since Opera forced dark mode breaks my and other sites.

    Personally I'm not using any forced dark mode solution.