Golden spacing scale
golden_spacingReturns the golden ratio spacing scale, exact px/rem values, CSS variable names, and a cheatsheet table to implement consistent spacing in Tailwind or CSS.
Instructions
The golden spacing scale (spacers 1-11 plus half-N and double-N) with exact values, px and CSS variable names, as used by goldenratio.app and the tailwindcss-golden-ratio plugin. With default options it also returns the rounded cheatsheet table from goldenratio.app/#/spacing.
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": "golden_spacing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Plugin prefix option, only changes tailwind_key (true = "gr-"). | |
| spacer_base | No | theme.goldenRatio.spacerBase: the size of spacer 6 (default 1.5, as on goldenratio.app). | |
| spacer_unit | No | theme.goldenRatio.spacerUnit (default 'rem'). | |
| root_font_px | No | Root font size for px conversion of rem/em values (default 16). |