create_style
Create or update a styles.ts file for an Expo component using Expo CSS, with organized style objects for mobile UI development.
Instructions
Create or update a styles.ts file for a mobile (Expo) component using Expo CSS. Only for Expo projects.
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": {
"cwd": "<cwd>",
"featureName": "<featureName>",
"componentName": "<componentName>",
"layer": "<layer>",
"styles": "<styles>"
},
"name": "create_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory path | |
| layer | Yes | Atomic design layer | |
| styles | Yes | Style object. Keys are style names, values are CSS property objects. E.g., {"container": {"flex": 1, "padding": 16}, "title": {"fontSize": 24}} | |
| featureName | Yes | Feature name (e.g., "Landing") | |
| componentName | Yes | Component name (e.g., "HeroSection") |