0

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 here


What I see:

screenshot


What I expected to see:

enter image description here


Haris Bouchlis
  • 2,366
  • 1
  • 20
  • 35

1 Answers1

1

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";