Back to Nx

Setup Tailwind Examples

packages/angular/docs/setup-tailwind-examples.md

22.7.1579 B
Original Source

Examples

The setup-tailwind generator can be used to add Tailwind configuration to apps and publishable libraries.

Standard Setup

To generate a standard Tailwind setup, just run the following command.

bash
nx g @nx/angular:setup-tailwind myapp
Specifying the Styles Entrypoint

To specify the styles file that should be used as the entrypoint for Tailwind, simply pass the --stylesEntryPoint flag, relative to workspace root.

bash
nx g @nx/angular:setup-tailwind myapp --stylesEntryPoint=apps/myapp/src/styles.css