I think classes should work, but you may need to use /deep/ because of the view encapsulation.
Try this:
/deep/ md-select.your-class {
background-color: blue;
}
You can also play with theming.
More Related Contents:
- Styling mat-select in Angular Material
- In RC.1 some styles can’t be added using binding syntax
- How to style child components from parent component’s CSS file?
- How and where to use ::ng-deep?
- Angular-cli from css to scss
- angular 2 ngIf and CSS transition/animation
- Dynamic styleUrls in angular 2?
- The use of /deep/ and >>> in Angular 2
- Angular dynamic background images
- Angular 2: How to style host element of the component?
- CSS file blocked: MIME type mismatch (X-Content-Type-Options: nosniff)
- Change style of pseudo elements in angular2
- Changing border color in mat-form-field
- Grid Styling – Overwrite style of ag-grid
- Dynamically updating css in Angular 2
- How to draw this chart in html and CSS? [closed]
- Bootstrap NavBar with left, center or right aligned items
- What is the best way to clear the CSS style “float”?
- How to make the items in the last row consume remaining space in CSS Grid?
- Responsive CSS triangle with percents width
- List of CSS vendor prefixes?
- @font-face works in IE8 but not IE9
- position: absolute without setting top/left/bottom/right?
- Z-index with before pseudo-element
- Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream
- What is the difference between :before and ::before?
- How do I detect the user’s browser and apply a specific CSS file?
- How to center multiple inline-block elements with CSS?
- Shrinking navigation bar when scrolling down (bootstrap3)
- How to combine and use multiple Next.js plugins