> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commonality.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Tailwind

### Check that a UI packages have a `tailwind.config.js` file

Make sure that you have a `tailwind.config.js` file for each UI package in your project to enable developer experience.

```ts .commonality/has-tailwind-config.ts theme={null}
import { hasTextFile } from 'commonality-checks-recommended';

export default hasTextFile('tailwind.config.js', [
  "import baseConfig from '@myteam/config-tailwind';",
  '',
  'export default {',
  '  ...baseConfig,',
  "  content: ['./src/**/*.{js,ts,jsx,tsx}']",
  '};',
]);
```

```json .commonality/config.json theme={null}
{
  "checks": [
    "ui": [
      "has-tailwind-config"
    ]
  ]
}
```
