Grid

CSS Grid gives you the primitives to build a responsive grid without a library-specific component. Microbe intentionally does not provide a grid module: the number of columns, gaps, and breakpoints are decisions that should fit your content and visual language.

Responsive columns

Start with one column, then add columns at widths where the content still has enough room. Use minmax(0, 1fr) to let each track shrink without allowing long content to force the grid wider than its container.

First item
Second item
Third item
Fourth item
Fifth item
Sixth item

Placement and spanning

Grid also lets individual items span tracks or occupy a specific area. Change the placement at a breakpoint when the smaller layout needs a different rhythm.

First item
Second item
Third item
Forth item
Fifth item
Sixth item