I am working on angular material Is there anyway i can change the color of the mat input form without creating a new theme file ? I have the deeppurple-ember theme running right now. I just want to change the color of the primary color to a dark green instead of the default purple.
I created a sample scss file, but since it is a basic file i am losing all the graphic functionality that comes with the prebuilt theme.
This is what i have
@import '~@angular/material/theming';
@include mat-core();
$primary: mat-palette($mat-green,200);
$accent: mat-palette($mat-red,200);
$theme: mat-light-theme($primary, $accent);
@include angular-material-theme($theme);
This is my input form in the prebuilt theme
<mat-form-field class="a">
<input matInput placeholder="Search" style="display:inline; width:200px">
</mat-form-field>
Css file
.a{
color:#129D90;
}
This changes the font of the input field but not the color of the underline and the form label.
I am sure there must be some way of changing the color of the label and the underline without changing the entire theme of my application.