I am using Material 2 in my Angular component. I want to override one of the classes e.g. .mat-input-wrapper defined in
There's no need to wrap with CSS: Applying this to another 'child' element like Using VS Code, hovering in the CSS editor will reveal detail of how this CSS will render. In this example, Of course, if you have multiple uses of the card in a single component, then you will need to make the distinction with a CSS class name adding the CSS: The alternative to this is to create individual components specific to the uses of different cards, styling each as required.mat-card mat-card-title {
color: red;
}
mat-card mat-card-content,
mat-card mat-card-title {
color: red;
}
class="card-style-1" to the element itself, like mat-card.card-style-1 mat-card-content,
mat-card.card-style-1 mat-card-title {
color: red;
}