While !important tag is bad in the long run, since Anvil roles are specially made for a particular group of components, I think it’s okay to use them at times.
Also, sometimes you can make the CSS properties work without using the !important tag. Take a look at this post Custom CSS Role for TextBox not working