DEV Community

Discussion on: Dark mode toggle animation using CSS !

ttebify profile image

I just observed now that you don't have the color property set in the CodePen version.

murtuzaalisurti profile image
murtuza Author

Yeah, because I have used SVG icons there and you must use fill property instead of color property in order to change the color of the SVG element.