Skip to main content

Compound Properties

Compound classes bundle multiple style attributes into one utility for faster styling. They cover layout, typography, spacing, and effects with alternative syntaxes where supported. See the sidebar for each entry.

Units — important

Many compound classes on this page produce dimensional values (margins, paddings, sizes, radii, shadow offsets, font sizes, translations). Those numbers are unitless — Titanium resolves them using ti.ui.defaultunit in tiapp.xml. The Alloy template default is dp (density-independent pixels), not raw pixels. See Values and Units for the full rules and exceptions.