convert_to_tailwind
Converts CSS, SCSS, or styled HTML into Tailwind utility classes, optimizing output and preserving custom properties that cannot be converted.
Instructions
Convert CSS/SCSS to Tailwind classes
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"format": "<format>"
},
"name": "convert_to_tailwind"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | CSS, SCSS, or HTML with styles to convert | |
| format | Yes | Input format | |
| optimize | No | Optimize the converted classes | |
| preserveCustom | No | Preserve custom properties that cannot be converted |