Skip to main content

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.

import { tokens } from 'legion-ui';

Preview

SpaceToken NameSpacingPixels
tokens.spacing10.25 rem4px
tokens.spacing20.5 rem8px
tokens.spacing30.75 rem12px
tokens.spacing41 rem16px
tokens.spacing51.25 rem20px
tokens.spacing61.5 rem24px
tokens.spacing71.75 rem28px
tokens.spacing82 rem32px
tokens.spacing92.25 rem36px
tokens.spacing102.5 rem40px
tokens.spacing113 rem48px
tokens.spacing123.5 rem56px
tokens.spacing134 rem64px
tokens.spacing145 rem80px
tokens.spacing156 rem96px
tokens.spacing167 rem112px
tokens.spacing178 rem128px
tokens.spacing189 rem144px
tokens.spacing1910 rem160px
tokens.spacing2011 rem176px
tokens.spacing2112 rem192px
tokens.spacing2213 rem208px
tokens.spacing2314 rem228px
tokens.spacing2415 rem240px
tokens.spacing2516 rem256px
tokens.spacing2618 rem288px
tokens.spacing2720 rem320px
tokens.spacing2824 rem384px
<div style="margin-bottom: tokens.spacing1"/>
<div style="margin-bottom: tokens.spacing2"/>
<div style="margin-bottom: tokens.spacing3"/>
<div style="margin-bottom: tokens.spacing4"/>
<div style="margin-bottom: tokens.spacing5"/>
<div style="margin-bottom: tokens.spacing6"/>
<div style="margin-bottom: tokens.spacing7"/>
<div style="margin-bottom: tokens.spacing8"/>
<div style="margin-bottom: tokens.spacing9"/>