Canonicalise a Tailwind class list
tailwind_canonicalizeRewrite Tailwind class lists into canonical form and order: convert arbitrary values to theme tokens, rename deprecated spellings, and sort classes like prettier-plugin-tailwindcss.
Instructions
Rewrite a class list into Tailwind's canonical form and order: arbitrary values that match a theme token become that token, deprecated spellings are renamed, and the classes are sorted the way prettier-plugin-tailwindcss would sort them.
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 canonicalise, e.g. ['mt-[16px]', 'p-4', 'flex'] |