build_type_scale
Generate a fluid modular type scale as clamp() values that interpolate with viewport width, using a gentler ratio for narrow screens to keep headlines readable on phones.
Instructions
Build a fluid modular type scale as clamp() values that interpolate with the viewport instead of stepping at breakpoints. The narrow end uses a gentler ratio so headlines stay readable on a phone.
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": "build_type_scale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | Scale ratio. Defaults to perfect-fourth. | |
| base_rem | No | Body size in rem. Defaults to 1. | |
| steps_up | No | Steps above body, 0-8. Defaults to 5. | |
| steps_down | No | Steps below body, 0-2. Defaults to 2. | |
| max_viewport_px | No | Viewport where the scale stops growing. Defaults to 1440. | |
| min_viewport_px | No | Viewport where the scale stops shrinking. Defaults to 360. |