ux-layout-spacing-grids

Applies base-unit spacing scales, grids, and proximity rules to screen layouts.

12|2|Updated Jun 22, 2026
One-click install
npx skills add https://github.com/Uxcel-Lab/product-skills --skill ux-layout-spacing-grids-uxcel-lab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ux-layout-spacing-grids
Source: https://github.com/Uxcel-Lab/product-skills/tree/main/ux/foundations/layout-spacing-grids
Command: npx skills add https://github.com/Uxcel-Lab/product-skills --skill ux-layout-spacing-grids-uxcel-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated layouts often use arbitrary pixel values, inconsistent alignment, and no grid, producing screens where nothing reads as more important than anything else. This Skill replaces ad-hoc spacing with a systematic approach: one base unit, a token scale, a grid, and deliberate use of proximity and whitespace. ## Core Features & Use Cases - Spacing and sizing system: Enforces a single 8px or 4px base unit with a numeric token scale, unifying margins, padding, gutters, and component sizes. - Grid selection and alignment: Chooses column, modular, manuscript, or hierarchical grids based on content type, with standard 12/8/4 column counts for desktop, tablet, and mobile. - Hierarchy through space: Uses proximity, external-vs-internal spacing, and whitespace to group related elements and rank importance. - Use Case: When asked to design a dashboard layout, the Skill establishes an 8px base unit, applies a responsive column grid, groups cards with consistent gutters, and hands off to aesthetics and accessibility audits before declaring the layout done. ## Quick Start Ask your assistant to design or critique a screen layout using disciplined spacing, an 8px base unit, and a responsive column grid.

Frequently Asked Questions about ux-layout-spacing-grids

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

FAQPage Schema
How do I create a consistent spacing scale for UI design?▼

Pick one base unit, typically 8px for most product interfaces or 4px for dense tools, and make every spacing and sizing value a multiple of it. Express the scale as tokens such as 4, 8, 16, 24, 32, 48, 64, optionally with semantic aliases like xs through lg.

What grid should I use for a dashboard or card layout?▼

Use a column grid for general layouts and a modular grid (columns crossed with rows) for uniform content like dashboards, galleries, and e-commerce cards. Standard responsive column counts are 12 on desktop, 8 on tablet, and 4 on mobile.

Should I use an 8px or 4px base unit for spacing?▼

Use 8px for most product UIs since it divides cleanly and matches Material and Apple conventions. Drop to 4px only for dense, data-heavy interfaces needing finer control, and avoid mixing both or going off-scale.

Why does my layout look inconsistent even with a grid?▼

Common causes are arbitrary off-scale values, equal spacing between related and unrelated items, and outer spacing smaller than inner spacing. Keep proximity tight within groups, larger between groups, and external spacing at least equal to internal spacing.

When should I break the grid in a layout?▼

Break the grid only deliberately and rarely, such as letting a hero element break out to grab attention. Accidental or frequent breaking destroys the grid's meaning; everything else should stay aligned to columns.