pixel_convert
Convert CSS units including px, pt, rem, em, and percent. Provide value, source, target, and base size (default 16px).
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 |