Grid and Flexbox cheatsheet

Use this page as a short reference while you work in the studio. Track units, alignment, and area rules below match what the generator writes into the CSS, HTML, and Tailwind tabs.

Grid versus Flexbox properties used by the studio
TopicCSS GridFlexbox
Displaydisplay: griddisplay: flex
Tracks or sizinggrid-template-columns / rows, including fr, px, auto, and minmax()flex-grow, flex-shrink, and flex-basis on each item
Gapgap, or row-gap and column-gapgap
Alignmentjustify-items and align-itemsjustify-content, align-items, and flex-wrap
Named regionsgrid-template-areas, only solid rectanglesNot used; items follow source order and the axis
Narrow viewports@media (max-width: 768px) stacks unique areas into one columnThe same query switches the axis to column

Track units

The studio ships 1fr, 2fr, 240px, minmax(180px, 1fr), and auto. Equal 1fr columns become grid-cols-N in Tailwind. Any other track list is written as an arbitrary grid-cols-[…] utility so the values stay exact.

Area names

A token must start with a letter and may use letters, digits, hyphens, or underscores. A lone dot erases a cell. Names such as span or auto are reserved by CSS and are rejected.

Back to the studio

Questions

When does Tailwind use square brackets?

When a track is not a uniform 1fr list, or when a flex basis is a custom length such as 200px. The brackets keep the exact CSS value.

Is the 768px rule a complete responsive system?

No. It is a starting hint that stacks the named areas or the flex axis. Adjust breakpoints in your own stylesheet after you paste the output.