i have used svg icons set in my angular project using(scss). now i want to change the icons color when ever user changes the theme "dark" icons should be light and when theme become light icons should be dark.
These things should be in single scss file, and i don want to use any angular material and No dependency.
If the icons you are using are svgs you can use a ngClass binding to switch the color
attribute.
If not, you can use two different icons with some *ngIf on your theme boolean.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.