/

Sizes

Many functions accept sizes as arguments. This page explains the correct format for defining them.

Single size (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:

Examples of accepted values are: 12px, 2cm, 5.3in, 30%.

You can omit the unit, in which case px is used by default.

Example 1

.container width:{50px} height:{2cm} background:{teal}

Size group (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:

Example 2

.container padding:{10px 60px} background:{teal}
    Quarkdown

Quarkdown