transform_tokens
Convert design tokens to platform-specific output files (CSS, SCSS, JS, TS, iOS, Android, Compose) using Style Dictionary. Preview changes with dry run mode.
Instructions
Transform design tokens into platform-specific output files using Style Dictionary. Generates CSS custom properties, SCSS variables, JavaScript modules, iOS/Swift code, Android XML, Compose code, etc. Use dryRun=true to preview without writing files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "transform_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview mode — show what files would be generated without writing them | |
| platforms | No | Platforms to build for (defaults to config). Available: css, scss, js, ts, ios, ios-swift, android, compose |