Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Foundation

Spacer

Consistent spacing makes clean and clear interface

banner-Spacer

Usage

Spacers is good spacing systems are based on simple mathematical principles with increments that are visually. This toolkit gives designers and developers guidelines for effectively applying layout spacing, resulting in a more consistent application of space across our product. You can chek out the guideline for more detail description.

Preview

SpaceToken NameSpacingPixels
spacing14dp4px
spacing28dp8px
spacing312dp12px
spacing416dp16px
spacing520dp20px
spacing624dp24px
spacing728dp28px
spacing832dp32px
spacing936dp36px
spacing1040dp40px
spacing1148dp48px
spacing1256dp56px
spacing1364dp64px
spacing1480dp80px
spacing1596dp96px
spacing16112dp112px
spacing17128dp128px
spacing18144dp144px
spacing19160dp160px
spacing20176dp176px
spacing21192dp192px
spacing22208dp208px
spacing23224dp228px
spacing24240dp240px
spacing25256dp256px
spacing26288dp288px
spacing27320dp320px
spacing28384dp384px

In your composable function, can use value LegionTheme.spacer.{spacer_token} on the colors attribute widget. Example below:

@Composable
fun YourComposable() {
...
Spacer(modifier = Modifier.size(LegionTheme.spacer.spacing1))
...
}