# Tailwind To Stylex — REST API endpoint `tailwind-to-stylex`

Convert Tailwind CSS v4 theme variables, JSON design tokens, or a static Tailwind config theme into StyleX defineConsts source and TypeScript declarations. Uploaded JavaScript is parsed as data and never executed.

- Category: developer
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, API key for tools/call, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/tailwind-to-stylex/execute (API key, 60 req/min per IP)
- API key: Running a tool needs an API key. Keys are not for sale yet: ask for early access. Without a key, a tool call answers HTTP 402 Payment Required with the error code PAYMENT_REQUIRED. The catalog and the schemas stay open without a key. https://findutils.com/api/#api-keys
- Reference page: https://findutils.com/api/tailwind-to-stylex/
- Same tool on the other surface: https://findutils.com/mcp/tailwind-to-stylex/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/tailwind-to-stylex/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "@theme { --color-brand-500: #3366ff; --spacing: 0.25rem; }"
  }'

# Parameter schema (no key needed)
curl https://api.findutils.com/api/tools/tailwind-to-stylex
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `source` | string | yes | Tailwind @theme CSS, CSS custom properties, JSON tokens, or a static Tailwind theme object. |
| `format` | string (auto \| css \| json \| config) | no | Input format: auto, css, json, or config. Default: auto. Default: `"auto"`. |

Example arguments (verified):

```json
{
  "source": "@theme { --color-brand-500: #3366ff; --spacing: 0.25rem; }"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/ --header "Authorization: Bearer YOUR_API_KEY"
```

Then ask the client to call `findutils:tailwind_to_stylex`. Full MCP reference: https://findutils.com/mcp/tailwind-to-stylex/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
