Use the margin utility to change the spacing around an item.
Examples
Margin on all sides
.ds-u-margin--0
0px
.ds-u-margin--05
4px
.ds-u-margin--1
8px
.ds-u-margin--2
16px
.ds-u-margin--3
24px
.ds-u-margin--4
32px
.ds-u-margin--5
40px
.ds-u-margin--6
48px
.ds-u-margin--7
56px
Margin on left and right (x-axis)
.ds-u-margin-x--0
0px
.ds-u-margin-x--05
4px
.ds-u-margin-x--1
8px
.ds-u-margin-x--2
16px
.ds-u-margin-x--3
24px
.ds-u-margin-x--4
32px
.ds-u-margin-x--5
40px
.ds-u-margin-x--6
48px
.ds-u-margin-x--7
56px
Margin on top and bottom (y-axis)
.ds-u-margin-y--0
0px
.ds-u-margin-y--05
4px
.ds-u-margin-y--1
8px
.ds-u-margin-y--2
16px
.ds-u-margin-y--3
24px
.ds-u-margin-y--4
32px
.ds-u-margin-y--5
40px
.ds-u-margin-y--6
48px
.ds-u-margin-y--7
56px
Margin top
.ds-u-margin-top--0
0px
.ds-u-margin-top--05
4px
.ds-u-margin-top--1
8px
.ds-u-margin-top--2
16px
.ds-u-margin-top--3
24px
.ds-u-margin-top--4
32px
.ds-u-margin-top--5
40px
.ds-u-margin-top--6
48px
.ds-u-margin-top--7
56px
Margin right
.ds-u-margin-right--0
0px
.ds-u-margin-right--05
4px
.ds-u-margin-right--1
8px
.ds-u-margin-right--2
16px
.ds-u-margin-right--3
24px
.ds-u-margin-right--4
32px
.ds-u-margin-right--5
40px
.ds-u-margin-right--6
48px
.ds-u-margin-right--7
56px
Margin bottom
.ds-u-margin-bottom--0
0px
.ds-u-margin-bottom--05
4px
.ds-u-margin-bottom--1
8px
.ds-u-margin-bottom--2
16px
.ds-u-margin-bottom--3
24px
.ds-u-margin-bottom--4
32px
.ds-u-margin-bottom--5
40px
.ds-u-margin-bottom--6
48px
.ds-u-margin-bottom--7
56px
Margin left
.ds-u-margin-left--0
0px
.ds-u-margin-left--05
4px
.ds-u-margin-left--1
8px
.ds-u-margin-left--2
16px
.ds-u-margin-left--3
24px
.ds-u-margin-left--4
32px
.ds-u-margin-left--5
40px
.ds-u-margin-left--6
48px
.ds-u-margin-left--7
56px
Auto margins
Responsive margins
Responsive format: .ds-u-[breakpoint]-margin-[x|y|bottom|left|right|top]--[0-7]
Read more about how the design system approaches spacing here.