Any way we can set dark\light icon for different browser themes?

138 views
Skip to first unread message

DreamBuilder Team

unread,
Jun 16, 2026, 5:49:55 AM (7 days ago) Jun 16
to Chromium Extensions
Hi,

In normal web dev we can set different favicon for browser depending on light\dark theme like below:

 <link
      rel="icon"
      href="favicon_light.svg"
      type="image/svg+xml"
      media="(prefers-color-scheme: light)"
    />

  <link
      rel="icon"
      href="favicon_dark.svg"
      type="image/svg+xml"
      media="(prefers-color-scheme: dark)"
    />

Is it somehow supported or planned to be supported in extensions as well?

Stefan Van Damme

unread,
Jun 16, 2026, 6:34:27 AM (7 days ago) Jun 16
to Chromium Extensions, DreamBuilder Team
Hi there,

There is an existing Chrome feature request related to supporting separate icons for Light and Dark Mode:
And this W3c report:

Thanks,
Stefan vd
Browser Extension Developer

DreamBuilder Team

unread,
Jun 16, 2026, 3:25:26 PM (7 days ago) Jun 16
to Chromium Extensions, Stefan Van Damme, DreamBuilder Team
Awesome thank you, hope we will see it soon in release

Mythical 5th

unread,
Jun 16, 2026, 7:05:15 PM (7 days ago) Jun 16
to Chromium Extensions, DreamBuilder Team
Bear in mind that dark mode and a dark browser theme do not always go together. Github has a color-scheme dependent favicon which may be invisible to users who have installed a custom theme:

gh.png
Reply all
Reply to author
Forward
0 new messages