Validate Tailwind classes
tailwind_validateValidate candidate Tailwind classes against your project and return the CSS they generate. Use before writing markup to avoid emitting classes that do not exist.
Instructions
Check whether candidate Tailwind classes exist in this project and return the CSS they generate. Accepts variants (md:hover:bg-red-500) and arbitrary values (w-[37px]). Use before writing markup to avoid emitting classes that do not exist.
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 | Tailwind class candidates to validate, e.g. ['p-4', 'bg-red-500', 'text-nope'] |