Correct Joe, I will use that in my next article. But prefers-color-scheme not supported by many of the browsers as of now. so, I thought of going with this approach.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.