Guides grid layout design for equal-hierarchy, multi-column content display. Grids display multiple items with equal emphasis; space-efficient and scannable. Used for products, templates, tools, features, blog indexes, and galleries.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Use grid whenUse list whenVisual content (images, thumbnails)Text-heavy; scan by titleEqual emphasis across itemsCompact; many items; dense infoProducts, templates, gallery, featuresBlog index, docs, search resultsBrowsing, discoveryReading, scanning
See list for list layout; card for card structure within grid.
ElementPurposeColumns1–4+ columns; adapt to viewportGapConsistent spacing between itemsItemsEqual or proportional sizingResponsive1 col mobile → 2–4 cols desktop
repeat(auto-fill, minmax(min, 1fr)) or repeat(auto-fit, minmax()) for fluid columnsPrinciplePracticeEqual hierarchyItems compete equally; no single dominant itemConsistent sizingSame card/item dimensions in gridGap consistencyUniform gap (e.g., 16px, 24px)No layout shiftReserve space for images; avoid CLS
If using infinite scroll with grid: crawlers cannot access content loaded on scroll. Provide paginated component pages for SEO-critical content. See site-crawlability for search-friendly implementation.