/
Many functions accept sizes as arguments. This page explains the correct format for defining them.
Size)When a Size value is required, strings with a numeric value (either integer or floating point) and a unit suffix are accepted.
Supported units:
px pixelspt pointscm centimetersmm millimetersin inches% percentage (relative to parent)Examples of accepted values are: 12px, 2cm, 5.3in, 30%.
You can omit the unit, in which case px is used by default.
.container width:{50px} height:{2cm} background:{teal}Sizes)Some parameters require a group of sizes, also known as Sizes. This is required, for example, by .pageformat’s margin parameter, and allows you to set up to four different values for each side of a rectangle.
The format follows CSS conventions, with three different ways to express a size group:
Size value applied to all sides (e.g., 8px)Size values separated by a space, applied to top-bottom and left-right respectively (e.g., 2cm 15mm)Size values separated by a space, assigned to top, right, bottom, and left sides respectively (e.g., 2.1in 4cm 2px 2cm).container padding:{10px 60px} background:{teal}
QuarkdownQuarkdown