If you’re coming from a css world you’ll probably have to tweak your thinking.
You’ll want to explore anvil-roles which adds a class to components. (I couldn’t quickly find much documentation on it but the forum has plenty of examples)
Unlike css a component can’t have multiple roles which is where the tweaking your thinking comes into play
Edit: too quick for me @alcampopiano