Bookmark Streamline Icon: https://streamlinehq.com
Chapter 4
Circle Clock Streamline Icon: https://streamlinehq.com
5 Mins

Layout

Spacing

The vertical space found between page content sections is usually much larger than the spacing found inside a component. This is why we take two different approaches to spacing.

Section Spacing

We use classes to add different amounts of vertical space to the top and bottom of sections. First we need to declare the padding direction followed by the spacing amount.

Class
Result
section-none
No amount of top and bottom padding applied
section-tiny
Tiny amount of top and bottom padding applied
section-xxsm
Extra, extra small amount of top and bottom padding applied
section-xsm
Extra small amount of top and bottom padding applied
section-sm
Small amount of top and bottom padding applied
section-md
Medium amount of top and bottom padding applied
section-lg
Large amount of top and bottom padding applied
section-xl
Extra Large amount of top and bottom padding applied
section-xxl
Extra, Extra Large amount of top and bottom padding applied
section-huge
Huge amount of top and bottom padding applied
section-xhuge
Extra Huge amount of top and bottom padding applied
section-xxhuge
Extra, Extra Huge amount of top and bottom padding applied
section-massive
Massive amount of top and bottom padding applied
Class
Default Amount
section-top-none
No amount of top padding applied
section-top-tiny
Tiny amount of top padding applied
section-top-xxsm
Extra, extra small amount of top padding applied
section-top-xsm
Extra small amount of top padding applied
section-top-sm
Small amount of top padding applied
section-top-md
Medium amount of top padding applied
section-top-lg
Large amount of top padding applied
section-top-xl
Extra Large amount of top padding applied
section-top-xxl
Extra, Extra Large amount of top padding applied
section-top-huge
Huge amount of top padding applied
section-top-xhuge
Extra Huge amount of top padding applied
section-top-xxhuge
Extra, Extra Huge amount of top padding applied
section-top-massive
Massive amount of top padding applied
Class
Result
section-bot-none
No amount of bottom padding applied
section-bot-tiny
Tiny amount of bottom padding applied
section-bot-xxsm
Extra, extra small amount of bottom padding applied
section-bot-xsm
Extra small amount of bottom padding applied
section-bot-sm
Small amount of bottom padding applied
section-bot-md
Medium amount of bottom padding applied
section-bot-lg
Large amount of bottom padding applied
section-bot-xl
Extra Large amount of bottom padding applied
section-bot-xxl
Extra, Extra Large amount of bottom padding applied
section-bot-huge
Huge amount of bottom padding applied
section-bot-xhuge
Extra Huge amount of bottom padding applied
section-bot-xxhuge
Extra, Extra Huge amount of bottom padding applied
section-bot-massive
Massive amount of bottom padding applied
Class
Combo Class
Result
section-xl
section-bot-md
On desktop switch your sections bottom padding value from extra large to medium.
section-huge
section-top-none
On desktop switch your sections top padding value from extra huge to none.
section-sm
@tablet section-lg
At tablet breakpoint switch your sections padding value from small to large.
section-lg
@h-mobile section-xl
At horizontal mobile breakpoint switch your sections padding value from large to extra large.
section-massive
@v-mobile section-bot-none
At vertical mobile breakpoint switch your sections padding value to none.
General Spacing

Use these utility classes to increase and decrease layout spacing. For flexibility you can also apply breakpoint specific overrides.

Class
Amount
m-none
No amount of margin applied
m-micro
Micro amount of margin applied
m-xtiny
Extra Tiny amount of margin applied
m-tiny
Tiny amount of margin applied
m-xxsm
Extra, extra small amount of margin applied
m-xsm
Extra small amount of margin applied
m-sm
Small amount of margin applied
m-md
Medium amount of margin applied
m-lg
Large amount of margin applied
m-xl
Extra Large amount of margin applied
m-xxl
Extra, extra large amount of margin applied
m-huge
Huge amount of margin applied
m-xhuge
Extra Huge amount of margin applied
m-xxhuge
Extra, extra huge amount of margin applied
m-massive
Massive amount of margin applied
Class
Amount
m-top-none
No amount of top margin applied
m-top-micro
Micro amount of top margin applied
m-top-xtiny
Extra tiny amount of top margin applied
m-top-tiny
Tiny amount of top margin applied
m-top-xxsm
Extra, extra small amount of top margin applied
m-top-xsm
Extra small amount of top margin applied
m-top-sm
Small amount of top margin applied
m-top-md
Medium amount of top margin applied
m-top-lg
Large amount of top margin applied
m-top-xl
Extra Large amount of top margin applied
m-top-xxl
Extra, extra large amount of top margin applied
m-top-huge
Huge amount of top margin applied
m-top-xhuge
Extra huge amount of top margin applied
m-top-xxhuge
Extra, extra huge amount of top margin applied
m-top-massive
Massive amount of top margin applied
Class
Amount
m-bot-none
No amount of bottom margin applied
m-bot-micro
Micro amount of bottom margin applied
m-bot-xtiny
Extra tiny amount of bottom margin applied
m-bot-tiny
Tiny amount of bottom margin applied
m-bot-xxsm
Extra, extra small amount of bottom margin applied
m-bot-xsm
Extra small amount of bottom margin applied
m-bot-sm
Small amount of bottom margin applied
m-bot-md
Medium amount of bottom margin applied
m-bot-lg
Large amount of bottom margin applied
m-bot-xl
Extra Large amount of bottom margin applied
m-bot-xxl
Extra, extra large amount of bottom margin applied
m-bot-huge
Huge amount of bottom margin applied
m-bot-xhuge
Extra huge amount of bottom margin applied
m-bot-xxhuge
Extra, extra huge amount of bottom margin applied
m-bot-massive
Massive amount of bottom margin applied
Desktop Class
Combo Class
Result
m-bot-huge
@tablet m-bot-sm
At tablet breakpoint switch bottom margin value from huge to small.
m-top-massive
@h-mobile m-top-none
At horizontal mobile breakpoint switch top margin value from massive to none.
m-sm
@v-mobile m-xl
At vertical mobile breakpoint switch margin value from small to extra large.
Class
Result
p-none
No amount of padding applied
p-micro
Micro amount of padding applied
p-xtiny
Extra tiny amount of padding applied
p-tiny
Tiny amount of padding applied
p-xxsm
Extra, extra small amount of padding applied
p-xsm
Extra small amount of padding applied
p-sm
Small amount of padding applied
p-md
Medium amount of padding applied
p-lg
Large amount of padding applied
p-xl
Extra large amount of padding applied
p-xxl
Extra, extra large amount of padding applied
p-huge
Huge amount of padding applied
p-xhuge
Extra huge amount of padding applied
p-xxhuge
Extra, extra huge amount of padding applied
p-massive
Massive amount of padding applied
Class
Result
p-top-none
No amount of top padding applied
p-top-micro
Micro amount of top padding applied
p-top-xtiny
Extra tiny amount of top padding applied
p-top-tiny
Tiny amount of top padding applied
p-top-xxsm
Extra, extra small amount of top padding applied
p-top-xsm
Extra small amount of top padding applied
p-top-sm
Small amount of top padding applied
p-top-md
Medium amount of top padding applied
p-top-lg
Large amount of top padding applied
p-top-xl
Extra large amount of top padding applied
p-top-xxl
Extra, extra large amount of top padding applied
p-top-huge
Huge amount of top padding applied
p-top-xhuge
Extra huge amount of top padding applied
p-top-xxhuge
Extra, extra huge amount of top padding applied
p-top-massive
Massive amount of top padding applied
Class
Result
p-bot-none
No amount of bottom padding applied
p-bot-micro
Micro amount of bottom padding applied
p-bot-xtiny
Extra tiny amount of bottom padding applied
p-bot-tiny
Tiny amount of bottom padding applied
p-bot-xxsm
Extra, extra small amount of bottom padding applied
p-bot-xsm
Extra small amount of bottom padding applied
p-bot-sm
Small amount of bottom padding applied
p-bot-md
Medium amount of bottom padding applied
p-top-lg
Large amount of bottom padding applied
p-bot-xl
Extra large amount of bottom padding applied
p-bot-xxl
Extra, extra large amount of bottom padding applied
p-bot-huge
Huge amount of bottom padding applied
p-bot-xhuge
Extra huge amount of bottom padding applied
p-bot-xxhuge
Extra, extra huge amount of bottom padding applied
p-bot-massive
Massive amount of bottom padding applied
Class
Combo Class
Result
p-bot-huge
@tablet p-bot-sm
At tablet breakpoint switch bottom padding value from huge to small.
p-top-massive
@h-mobile p-top-none
At horizontal mobile breakpoint switch top padding value from massive to none.
p-sm
@v-mobile p-xl
At vertical mobile breakpoint switch padding value from small to extra large.
Class
Result
v-flex-row-gap-none
Vertical row gap value is set to none
v-flex-row-gap-tiny
Vertical row gap value is set to tiny
v-flex-row-gap-xxsm
Vertical row gap value is set to extra, extra small
v-flex-row-gap-xsm
Vertical row gap value is set to extra small
v-flex-row-gap-sm
Vertical row gap value is set to small
v-flex-row-gap-md
Vertical row gap value is set to medium
v-flex-row-gap-lg
Vertical row gap value is set to large
v-flex-row-gap-xl
Vertical row gap value is set to extra large
v-flex-row-gap-xxl
Vertical row gap value is set to extra, extra large
v-flex-row-gap-huge
Vertical row gap value is set to huge
Desktop Class
Combo Class
Result
v-flex-row-gap-md
@tablet v-flex-row-gap-none
At tablet breakpoint switch the flex row gap value from medium to none.
v-flex-row-gap-lg
@h-mobile v-flex-row-gap-huge
At horizontal mobile breakpoint switch the flex row gap value from large to huge.
Compact Component Spacing

When creating compact, small components apply spacing directly to that custom component class. This enables a high-level of control at different breakpoints and avoids class stacking.

Containers

Containers allow us to control the horizontal width of content. They also allow us to ensure there is always a consistent amount of horizontal padding on each side of the page.

Use these container classes to apply a max-width value to your page content. You can stack this class on top of component classes or stand-alone.

Class
Description
container
is--sm
Small max-width
container
is--md
Medium max-width
container
is--lg
Large max-width
container
is--xl
Extra large max-width
Units

Here’s an overview of the different units we use for layout and in what scenario they’re applied.

Unit Name
Use Case
PX
Borders
VH
Section & Component Heights
%
Columns
Aspect Ratio
Image Containers
REM
Everything Else
FAQs
Why don't you recommend column classes?
‍‍