Home > OS >  Angular material style not applied in StackBlitz
Angular material style not applied in StackBlitz

Time:11-27

I'm trying to create a StackBlitz project with angular material, I added the library (@angular/material@12) in the dependencies but the style is not implemented correctly. What am I missing?

StackBlitz mentioned is screenshot


What I expected to see:

enter image description here


CodePudding user response:

It seems that you also need to import the angular material theme you'll use.

Try adding this to styles.css :

@import "~@angular/material/prebuilt-themes/indigo-pink.css";
  • Related