Tailwind CSS classes flagged as redundant

Problem

After updating to PhpStorm 2026.2, valid Tailwind CSS classes (such as text-zinc-900 and dark:text-zinc-100) are flagged as redundant or incorrect. Warning messages like “‘text-zinc-900’ applies the same CSS properties as ‘dark:text-zinc-100’” appear in markup, although these classes are correct.

There is no “Tailwind CSS” section under Settings | Editor | Inspections, so the related inspection cannot be deactivated or adjusted via the standard interface.

Cause 

The warning comes from the Tailwind CSS Language Server that highlights errors and potential bugs right in the editor. Please refer to https://github.com/tailwindlabs/tailwindcss-intellisense#linting for more information.

Resolution

  1. Navigate to  Settings | Languages & Frameworks | Style Sheets | Tailwind CSS
  2. In the "lint": {}section, change "cssConflict" to "ignore",
  3. Restart the language server
0 out of 0 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request