DEV Community

Discussion on: Dark mode toggle animation using CSS !

Collapse
ttebify profile image
ttebify

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

Collapse
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.