DEV Community

Discussion on: One line - Dark Mode using CSS

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
akhilarjun profile image
Akhil Arjun

Well, there are a couple of ways we can achieve that too.
If it is just a div with a background-image set. Then applying filter would not be a problem there, but if that element has some content then the filter might affect it all too. So we might have to check for specialized solutions.
There is a beautiful article on css-tricks regarding the same css-tricks.com/apply-a-filter-to-a....

Hope that helps 😀