# resolveSharedTailwindEntry

`function` in `eslint-config` · v1.4.3-next.0

<https://docs.seedcord.org/packages/eslint-config/1.4.3-next.0/functions/resolve-shared-tailwind-entry>

Resolves a Tailwind entry CSS path for a package that does not ship its own `globals.css`.

Many monorepo packages (shared UI primitives, utility libraries) consume tokens from a sibling app's Tailwind setup rather than declaring their own `@import 'tailwindcss'` entry. The canonical-class lint rules still need a CSS file to resolve the Tailwind scale against, so we point them at a consuming app's `globals.css`.

```ts
resolveSharedTailwindEntry(
    packageRoot: string,
    candidates: string[]
): string | undefined
```

Resolves a Tailwind entry CSS path for a package that does not ship its own `globals.css`.

Many monorepo packages (shared UI primitives, utility libraries) consume tokens from a sibling app's Tailwind setup rather than declaring their own `@import 'tailwindcss'` entry. The canonical-class lint rules still need a CSS file to resolve the Tailwind scale against, so we point them at a consuming app's `globals.css`.

Parameters.

- `packageRoot` `string` — Absolute path to the consuming package's root (typically `import.meta.dirname`).
- `candidates` `string[]` — Relative paths to potential entry CSS files, tried in order. First existing wins.

Returns `string | undefined`.
