Skip to main content

Changing units

Learn why measurement units in Zeplin are different than the ones in your designs

Didem avatar
Written by Didem
Updated over 2 weeks ago

Zeplin generates resources like specs, assets, and code snippets based on your project density and selected platform (iOS, Android, Web, and macOS). It automatically converts units accordingly, ensuring everything is tailored to your selected platform and density settings.

πŸ’β€β™€οΈ Learn more about switching platforms to access specific assets and specs.

Converting Units

Zeplin will convert the units of measurement if the units in your design are different from the ones required by the platform selected.

  • For iOS and macOS, measurements are in pt.

  • For Android, measurements are in dp.

  • For Web, measurements are in px.

Converting Values

Zeplin will convert the value of your measurements based on your project density.

Your project density is calculated using the platform (selected on the platform switcher) you're working on and the original dimensions of your design. For example, if you are working on a 640Γ—1136px iOS design (which is 2x), a 20px measurement will be displayed as 10pt since developers use 1x values while coding.


Related articles

Did this answer your question?