Color/icon change

I’m using the mushroom template. Is it an easy way to have the color and icon change based on something being on or off keeping the same look as this template?