ยฉ 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Usman Sabuwala
Learning web development, running a YouTube channel
๐ Hi again! Welcome back to another blog post and this one will also be quite helpful! In this post, I have covered about how you can change the favicon according to system dark mode. An example is GitHub. When my system color is dark, the logo bec...
Dev By RayRay
Tech Lead / Lead Developer in the ๐ณ๐ฑ https://byrayray.dev/
This is cool ๐
Paun Kumar
Useful
Favicon should change in incognito browsing tab or window if possible
Kristopher Guzman
A Half-Ass JavaScript Developer
Nice! Quick additional tip, you don't have to run setInterval every second. You can add an event listener directly:
setInterval
// chrome + firefox isDark.addEventListener('change', (e) => {}) // safari isDark.addListener((e) => {})
Yeah I got to know about it later. Thanks for letting us know.
Dev By RayRay
Tech Lead / Lead Developer in the ๐ณ๐ฑ https://byrayray.dev/
This is cool ๐