Angular Material mat-spinner custom color

mavrise picture mavrise · Feb 14, 2018 · Viewed 33.8k times · Source

Does anyone know how can I change mat-spinner color in Angular Material? Overriding css doesn't work. I tried changing color in material files but they can only be imported, I can't change anything there. I want it to be my custom color, not color from prebiult-themes.

Answer

Nitin Wahale picture Nitin Wahale · Apr 20, 2018

Use this code for ** < mat-spinner >** add this code in your .css file

.mat-progress-spinner circle, .mat-spinner circle {
stroke: #3fb53f;
}