-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Angular Projects - Third Edition
By :
Tailwind is a very popular CSS framework that enforces a utility-first core principle. It contains classes and styles that can be used in Angular applications to create easily composable user interfaces.
We will use the Schematics API of the Angular CLI to build a generation schematic for Angular components. The schematic will generate a new Angular component styled with a Tailwind container layout.
The schematic we will build does not need Tailwind CSS installed by default. However, the application in which we will use the schematic does require it.
Let’s see how we can accomplish that:
schematics blank tailwind-container
The preceding command will update the collection.json file to contain a new entry for the tailwind-container schematic. It will also create a tailwind-container folder in the src folder of our workspace...