nx/packages/angular/docs/setup-tailwind-examples.md
2022-10-10 13:24:47 +00:00

28 lines
657 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 @nrwl/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 @nrwl/angular:setup-tailwind myapp --stylesEntryPoint=apps/myapp/src/styles.css
```
{% /tab %}
{% /tabs %}