CSS Primer For the AI Era

A vocabulary for shaping interfaces with AI

User Tools

Site Tools


vocabulary:css_layout_patterns

CSS Layout Patterns

—the recurring structures
that shape
how elements arrange themselves

Layout patterns are the familiar shapes of the web
— the quiet, reusable arrangements that help us describe structure without specifying code.

They are not components.
They are relationships:

  • how elements sit, stretch, group,
    and distribute themselves.

Patterns give us a shared language
for describing layout intentions
clearly and safely
.

Common terms:

  • Flex Row — elements arranged horizontally, sharing a line
    A row expresses sequence, comparison, or grouping.
    It adapts gracefully to different screen widths.
  • Flex Column — elements arranged vertically, following the natural flow
    A column expresses reading order, hierarchy, and calm pacing.
  • Grid Tracks — structured rows and columns that divide space proportionally
    Grids create balance, rhythm, and predictable alignment.
  • Wrappers — outer containers that limit width and center content
    Wrappers create comfort and prevent layouts from stretching too wide.
  • Containers — structural boxes that hold related elements together
    Containers define boundaries, spacing, and context.
  • Gutters — the intentional space between columns or groups
    Gutters create clarity and prevent visual collisions.
  • Breakpoints — the moments where layout adapts to screen size
    Breakpoints let patterns shift without losing meaning.

Why Layout Patterns matter when working with AI

Patterns let us describe structure without micromanaging code.
When we name a pattern, we tell AI:

  • how elements should relate
  • how space should be distributed
  • how the layout should adapt
  • what must remain stable across breakpoints

Patterns turn layout from
guesswork into intention
.


  • Flow — the baseline behavior patterns build on
  • Containment — the boundaries patterns live inside
  • Alignment — how patterns express balance
  • Spacing — the breathing room between pattern elements

Tony de Araujo —New York | Lisbon


vocabulary/css_layout_patterns.txt · Last modified: by editor