Hi sowndarya,
You can accomplish that if you change the classes according with the the current theme apply if you have for example a Boolean to do that so if you got a switch that control if the active team is white or black, then you can use that boolean on the icon classes to control the color they show as well
Regards,