nx/packages/angular/docs/setup-tailwind-examples.md
Isaac Mann afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00

28 lines
653 B
Markdown

## Examples
The `setup-tailwind` generator can be used to add [Tailwind](https://tailwindcss.com) configuration to apps and publishable libraries.
{% tabs %}
{% tab label="Standard Setup" %}
To generate a standard Tailwind setup, just run the following command.
```bash
nx g @nx/angular:setup-tailwind myapp
```
{% /tab %}
{% tab label="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
```
{% /tab %}
{% /tabs %}