Can anyone help me figure out how to use a custom color for a mat-button in my Angular project, instead of just using the default accent or primary colors?
<button (click)="gotoDashboardHome()" mat-raised-button color="accent" class="centered-button">
<mat-icon>reply</mat-icon>
<span class="button-text">Back</span>
</button>
.centered-button {
display: flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
}
.button-text {
margin-left: 5px;
font-size: 14px;
}
Exploring ways to customize mat-button colors