What css size using in ns?



On http://docs.nativescript.org/angular/tutorial/ng-chapter-4#43-listview

there is a style:

.small-spacing {
  margin: 5;
.medium-spacing {
  margin: 10;

What is the size? in px? pt? %? or something else?


Hi, the default measure unit is Density-independent pixels (dp). The size in pixels will be calculated relative to device screen.

px = dp * (dpi / 160)

In Nativescript 3.0 you can also specify the px suffix to define a 1-px wide border, for example, but it will be used in specifics cases.