DEV Community

Discussion on: One line - Dark Mode using CSS

akhilarjun profile image
Akhil Arjun Author

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

Hope that helps 😀