Diagnose a Tailwind class list
tailwind_diagnoseCheck a Tailwind class list for all issues at once: nonexistent classes, arbitrary values, conflicts, and v3 to v4 migration needs. Run before writing or editing markup.
Instructions
Check a class list for every problem at once: classes that do not exist (with spelling suggestions), classes that use an arbitrary value where a theme token would do, classes that override each other, and v3 classes that need migrating to v4. This is the tool to call before writing or editing markup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Absolute path to the project to inspect. Defaults to the server's working directory. Use it when the Tailwind project is not the current working directory. | |
| candidates | Yes | The class list to diagnose, e.g. ['p-4', 'bg-red-501', 'mt-[16px]', 'p-2 p-4'] |