Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a dynamic favicon (which is depending on the browser color)?

I added a favicon to my website, but the favicon is black, and can not seen for example in Mozilla FF dark mode. How can I (using JS or HTML) detect the browser Color?


1 Answers

It is not possible to get the color of the browser. The only possibility is to detect if the browser is in dark mode or not.

Solutions for that case are shown under Is it possible to use a different favicon for browsers that support theme-color? and Detect if the browser is using dark mode and use a different favicon, but there is no way of getting the browser tabs color.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!