# noTailwindConflictingClasses

Rule `biome/noTailwindConflictingClasses`. Disallow Tailwind CSS classes that set the same CSS properties on an element.

- Source: biome
- Technologies: Tailwind CSS, React
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #557 by reach, #192 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noTailwindConflictingClasses` | yes | no | group nursery, since 2.6.9 | [docs](https://biomejs.dev/linter/rules/no-tailwind-conflicting-classes/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<div className="flex grid" />;
```

```jsx
<div className="p-2 hover:text-red-500 hover:text-blue-500" />;
```

### Correct: the rule accepts this

```jsx
<div className="flex w-full" />;
<div className="flex md:grid" />;
<div className="p-2 px-4" />;
<div className="text-lg text-red-500" />;
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noTailwindConflictingClasses": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noSvgWithoutTitle](https://lintradar.dev/rules/biome/noSvgWithoutTitle.md): Enforces the usage of the `title` element for the `svg` element.
- [biome/noTailwindLegacyImportant](https://lintradar.dev/rules/biome/noTailwindLegacyImportant.md): Disallow the leading `!` important modifier in Tailwind CSS classes.
- [biome/noSvelteUselessDerivedBy](https://lintradar.dev/rules/biome/noSvelteUselessDerivedBy.md): Disallow `$derived.by()` when `$derived()` is sufficient.
- [biome/noTailwindLegacyUtilities](https://lintradar.dev/rules/biome/noTailwindLegacyUtilities.md): Disallow Tailwind CSS utility classes that Tailwind CSS only keeps for backward compatibility.
- [biome/noSvelteUnnecessaryStateWrap](https://lintradar.dev/rules/biome/noSvelteUnnecessaryStateWrap.md): Disallow unnecessary `$state` wrapping of reactive classes.
- [biome/noTanstackQueryRestDestructuring](https://lintradar.dev/rules/biome/noTanstackQueryRestDestructuring.md): Disallow rest destructuring and object spread on TanStack Query results.

---

Web page: https://lintradar.dev/rules/biome/noTailwindConflictingClasses. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
