[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [dev](../README) / detectCssPlugins

# Function: detectCssPlugins()

> **detectCssPlugins**(`cwd`): `Promise`\<`BunPlugin`[]\>

Defined in: [packages/core/src/dev/CssPlugins.ts:24](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/dev/CssPlugins.ts#L24)

Detect and load `bun-plugin-tailwind` from the app's own node_modules.

Bun ships first-class CSS support and `bun-plugin-tailwind` handles
Tailwind v4 natively — no PostCSS or @tailwindcss/postcss needed.
Apps only need:

  bun add -d bun-plugin-tailwind

Packages are resolved from the project CWD (not from @zerotal/core) so the
plugin only needs to be in the app's own node_modules.

Returns an empty array when `bun-plugin-tailwind` is not installed.
The caller falls back to a `bunx @tailwindcss/cli` subprocess.

## Parameters

### cwd

`string`

## Returns

`Promise`\<`BunPlugin`[]\>
