Layout System

The foundation of any visual design. Layouts create structure, hierarchy, and rhythm.

1. The Grid System

Grids organize design elements into a consistent framework. A strong grid system ensures alignment and balance across different screen sizes.

  • Columns: Vertical divisions of the screen.
  • Gutters (Gaps): Space between columns.
  • Margins: Space outside the grid.

Grid System Playground

Adjust the parameters to see how the grid responds.

Col 1
Col 2
Col 3
Col 4
Col 5
Col 6

Do

  • Use `gap` utility for consistent spacing
  • Align main content containers to the grid
  • Use standard 4px/8px spacing scale

Don't

  • Don't use random margins to push content
  • Don't mix different grid systems in one page
  • Don't hardcode pixel widths for columns

2. Common Structures

Beyond grids, certain high-level layout patterns have become standard in web application design.

Common Layout Structures

Essential structural patterns used in modern web applications.

When to use Sidebar Layout:

Standard dashboard layout with fixed sidebar

3. Code Challenge

Design often happens in code. Try modifying the Tailwind classes below to change the card's appearance.

  • Change rounded-xl to rounded-full
  • Change bg-white to bg-blue-500
  • Add rotate-3 to see what happens
Live EditorReact / Tailwind
Loading editor...
(Live preview updates styles found in className="...")
Card with Hover Effect

4. Responsive Design

Layouts must adapt to different viewport sizes. You generally choose between:

Fluid Layout (%)

Elements resize proportionally. Good for full-immersion apps (maps, dashboards).

Fixed/Hybrid (max-width)

Container locks at a max-width (e.g. 1280px). Best for reading and content consumption.

Common breakpoints include:

Mobile
< 640px
Tablet
640px - 1024px
Desktop
1024px - 1280px
Wide
> 1280px

5. Common Patterns

F-Pattern

Users scan the screen in an F-shape. Ideal for text-heavy content.

Z-Pattern

Users scan from top-left to top-right, then diagonally down. Ideal for landing pages.