generate_dark_mode
Convert a light-mode screen into a dark-mode variant by analyzing its color palette, inverting brightness, adjusting contrast, and preserving brand accents.
Instructions
Takes a light-mode screen and generates a dark-mode variant. Analyses the existing color palette and instructs Stitch to regenerate with inverted brightness, adjusted contrast, and preserved brand accents.
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": {
"projectId": "<projectId>",
"screenId": "<screenId>"
},
"name": "generate_dark_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contrast | No | Contrast level for the dark variant. | normal |
| screenId | Yes | The source (light-mode) screen ID. | |
| projectId | Yes | The Stitch project ID. | |
| deviceType | No | Target device type. | MOBILE |
| preserveAccents | No | Keep accent/brand colors unchanged (only invert backgrounds and text). |