pixel_convert
Convert values between CSS units px, pt, rem, em, and percent. Specify source and target units, with an optional base font size for accurate conversions.
Instructions
Convert between px, pt, rem, em, and percent CSS units.
Parameters:
value — Value to convert.
from_unit — Source unit: 'px', 'pt', 'rem', 'em', 'percent'.
to_unit — Target unit.
base_size — Base font size (default: 16px).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_unit | Yes | ||
| to_unit | Yes | ||
| base_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |