Adding the Indigo Pink Theme to our Angular Material Project

Ole Ersoy
Aug 12, 2019

--

Photo by Nikhita Singhal on Unsplash

First install Angular Material:

npm install --save @angular/material @angular/cdk @angular/animations

In src/styles.css add:

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

This comes in handy especially when working with Stackblitz. The latest Angular CLI will version will ask you if you want to add it when doing ng add @angular/material .

--

--