Overview
In most cases each website page should follow the below basic structure.
— .global CSS
— .page wrapper
—— .nav
—— .container
——— .component
—— .spacer
—— .container
——— .component
—— .footer
Overview
Use containers to set a maximum horizontal width on all website content. This improves usability and legibility of content on large screens.
Application
Apply the class name directly to any div element.
Usage
Containers can sit both inside or outside a component. Use inside of you'd like the component to run the full horizontal page width.
Spacer Blocks
We avoid global spacing classes for modern marketing websites . Through extensive testing and use we've found they create an extra level of complexity and make it difficult to manage across device breakpoints.
Application
Spacer blocks can be used to create vertical space between components on your page. Use them when you need to create a large gap between content. Apply to a single div element.
Structure
— page wrapper
—— component
—— spacer
—— component
Overview
Inside any component (Navigations, Footers, Cards etc) you can apply top, left, right and bottom padding or margins to create space.
Units
In most cases use REM units for padding and margins. For advanced layout also consider vw , vh and percent.