derive_density_mode
Derives compact or spacious density tokens from existing tokens while enforcing WCAG minimum touch target sizes and generating conditional options.
Instructions
Derive a new density mode (compact/spacious) from existing tokens. Applies scale factors while respecting WCAG accessibility constraints (44px minimum touch targets). Outputs conditional tokens.
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": {
"sourceTokens": "<sourceTokens>",
"targetDensity": "<targetDensity>"
},
"name": "derive_density_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roundTo | No | Rounding strategy | integer |
| sourceTokens | Yes | Source tokens (base/comfortable density) | |
| sourceDensity | No | Source density mode | comfortable |
| targetDensity | Yes | Target density mode to derive | |
| minTouchTarget | No | Minimum touch target size (WCAG 2.2: 44px) | |
| generateConditional | No | Generate tokens with com.systembridge-mcp.conditions extension |