No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

8px Grid and spacing

It’s fundamental to everything we design. The 8px Grid is the geometric foundation of all the visual elements of Kyper, from typography to columns, boxes, icons, and illustrations. It provides structure and guidance for all creative decision-making.

Overview

MX uses an 8 px layout grid. All visual assets should align to this grid. There are some cases where it's ok to "split" the grid.

Spacing constants

Spacing refers to either the margin or padding of an object. Spacing should align to the values below.

spacing constants

Spliting the gird

Splitting is when an assets height or width end at an increment of 4px. In some cases it is ok to space objects at 4px or 12px apart. Typically you will split the grid to allow for proper grouping of assets. See Gestalt's principle of proximity for more context.

Also, due to font sizing constraints some of our font sizes split the grid. Below are a list of font sizes that have line heights that do not strictly align to an 8px grid.

SizeLine height
Body20px
Paragraph small20px
Tiny12px

Examples of splitting the grid

splitting example splitting example

Resources