Skip to content

Style Properties

All properties available inside <styles> rules, organised by category.

Usage

xml
<styles>
  <tag-name>
    <property-name>value</property-name>
  </tag-name>
</styles>

Length units

length in the tables below means a number with a unit: pt (points), cm, mm or in. There are 72 points and 2.54 centimetres to the inch, so 1in, 72pt, 2.54cm and 25.4mm all describe the same length. Where a property also accepts a share of its parent, % is listed beside it.

Layout Properties

PropertyValid ValuesApplies To
widthlength, %, fill, autoBlocks
heightlength, %, fill, autoBlocks
min-widthlength, %Blocks
max-widthlength, %Blocks
min-heightlength, %Blocks
max-heightlength, %Blocks
directioncolumn, col, rowFrames
h-alignleft, center, right, justifyBlocks
v-aligntop, center, bottom, justifyBlocks

Typography Properties

PropertyValid ValuesApplies To
fontFont nameAll
font-sizeptAll
font-stylenormal, bold, italicAll
font-weight100-900, named weightAll
font-colorColour valueAll
text-alignleft, right, center, justifyAll
line-heightNumber or ptAll
text-decorationnone, underline, strikethroughInlines
text-shadowptAll
text-shadow-colorColour valueAll
preserve-whitespacetrue, falseAll
wrapnormal, noneAll
overflowvisible, ellipsisAll
text-transformuppercase, lowercase, capitalize, upper, lower, titleAll
caseAlias for text-transformAll

Spacing Properties

PropertyValid ValuesApplies To
paddinglengthBlocks
padding-toplengthBlocks
padding-bottomlengthBlocks
padding-leftlengthBlocks
padding-rightlengthBlocks
space-before-desiredlengthBlocks
space-after-desiredlengthBlocks

Border Properties

PropertyValid ValuesApplies To
border-weightlengthBlocks
border-weight-toplengthBlocks
border-weight-bottomlengthBlocks
border-weight-leftlengthBlocks
border-weight-rightlengthBlocks
border-colorColour valueBlocks
border-color-topColour valueBlocks
border-color-bottomColour valueBlocks
border-color-leftColour valueBlocks
border-color-rightColour valueBlocks
border-radiuslengthBlocks
border-radius-tllengthBlocks
border-radius-trlengthBlocks
border-radius-bllengthBlocks
border-radius-brlengthBlocks

Appearance Properties

PropertyValid ValuesApplies To
background-colorColour valueBlocks
colorColour valuehr

Breaking Properties

PropertyValid ValuesApplies To
breakauto, neverBlocks
prevent-lasttrue, falseBlocks
orphan-lines-thresholdNumberBlocks

Colour Values

Anywhere a colour is expected, these formats are valid:

FormatExample
Hex short#09f
Hex full#0099ff
Hex with alpha#0099ff80
RGBrgb(0, 153, 255)
RGBArgba(0, 153, 255, 0.5)
HSLhsl(210, 100%, 50%)
Namedwhite, black, grey, red, etc.
Asset colourName from <assets><colors>