Dimensions

Dimensions

Dimensions are the size of an element. Screens are flat, so interface elements have two dimensions: width and height, as the example shows.

Defining sizes in advance keeps a design consistent. Buttons, icons, avatars and inputs usually come in a few set sizes.

Sizes are measured in units such as pixels (px) on the web, points (pt) on iOS and density-independent pixels (dp) on Android.