layout-and-composition

Guide UX/UI layout composition with Gestalt principles and CSS grid and flexbox.

1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/jpoindexter/design-and-ai-skills --skill layout-and-composition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: layout-and-composition
Source: https://github.com/jpoindexter/design-and-ai-skills/tree/main/design-system-skills/layout-and-composition
Command: npx skills add https://github.com/jpoindexter/design-and-ai-skills --skill layout-and-composition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of creating coherent and effective layouts for any screen, ensuring visual hierarchy, structure, and user flow are optimized.

Core Features & Use Cases

  • Visual Hierarchy: Define the order of importance with size, weight, color, contrast, and position.
  • Gestalt Principles: Apply proximity, similarity, common region, closure, continuity, figure/ground, and common fate to group elements meaningfully.
  • Alignment & Balance: Align elements to a grid, balance symmetrical and asymmetrical compositions, and use tension for emphasis.
  • Whitespace & Rhythm: Utilize macro and micro whitespace to enhance grouping and rhythm in the layout.
  • Scanning Patterns: Understand and leverage F-pattern, Z-pattern, layer-cake, spotted, reading direction, and above-the-fold scanning to structure content effectively.
  • Responsive Layouts: Design patterns like centered column, sidebar + content, holy grail, split, master-detail, and card grid for different screen sizes and content types.
  • CSS Implementation: Utilize Flexbox and Grid for layout, responsive strategies, logical properties, and container queries for modern design.

Quick Start

Run the layout-and-composition skill to analyze and optimize the layout of your web page.

Frequently Asked Questions about layout-and-composition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply Gestalt principles to improve visual hierarchy in UI layout design?

To improve visual hierarchy in UI layout design, apply Gestalt principles like proximity, similarity, and common region to group elements meaningfully. Define element importance using size, weight, color, contrast, and position to structure content effectively.

What is the best way to structure responsive layouts using CSS Grid and Flexbox?

The best way to structure responsive layouts is using CSS Grid for two-dimensional page structures and Flexbox for one-dimensional component alignment. Utilize logical properties and container queries to adapt designs like holy grail or card grid patterns across devices.

How do scanning patterns affect web page composition and visual hierarchy?

Scanning patterns affect web page composition by dictating how users visually parse content. Leverage F-pattern, Z-pattern, and layer-cake scanning behaviors to position critical information above the fold and optimize the overall user experience flow.

When should I use macro vs micro whitespace in layout design?

Use macro whitespace in layout design to separate major page sections and establish overall rhythm, while applying micro whitespace to enhance grouping and readability within individual elements. Both are essential for creating balanced, coherent compositions.

Does responsive design require container queries for modern CSS layout composition?

Responsive design does not strictly require container queries, but they are highly recommended for modern CSS layout composition. They allow components to adapt based on their parent container size rather than the viewport, improving modularity.

Why does asymmetric balance create better visual hierarchy than symmetrical composition?

Asymmetric balance creates dynamic visual hierarchy by using tension and varying element weights to guide the user's eye, whereas symmetrical composition offers stability but can feel static. Both approaches align elements to a grid for structural coherence.