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
- Navigate to Settings | Languages & Frameworks | Style Sheets | Tailwind CSS
- In the "lint": {}section, change
"cssConflict"to"ignore", - Restart the language server
Please sign in to leave a comment.