Skip to main content

Grid

Hashi uses grid as our basis for creating layouts. Hashi follows a responsive 12-column grid layout system.

Grid Specs

The 12-column grid layout system

This type of grid layout system as been an industry standard, tried and battle tested, and has proven to be an effective method for creating layouts. We've adopted this as our basis for creating layouts.

To read more about this grid layout system, click here.

Responsive Grid

Breakpoint# of columns
Small4
Medium8
Large12
XLarge12

Grid Spacers (Gutters)

Gutters are the spacers in the grid. They are the gaps between the columns. Gaps must be big enough to make a distinction, but not too big that causes a lot of whitespace.

We have carefully crafted these gutter/spacer token values to be used in deciding a gutter/spacer size.

LabelValue (in px)
none0
xs4px
sm8px
md12px
lg24px
xl32px

Responsive Grid Widths

Grid widths introduce width constraints depending on the screen size. We generally recommend having the grid be at a maximum width of 1077px.

Grid Margins

Grid margins provide a bit of allowance for the grid layout to breathe. These margins also prevent the grid from touching the edges of the screen on smaller sizes.

Here are the standard values:

SideValue (in px)
Horizontal15px
Vertical20px

HSLayout

HSLayout is a layout component that acts as a wrapper for content. This is the component that always implements the responsive 12-column grid layout system. By default, it uses the global gutter value, however, gutters for specific grids can be customized using the previously provided spacing tokens.