/design-engine:layout-grid-and-spacingfrom design-engine
Defines column scaffolds, margins, gutters, spacing rhythm, and alignment systems for pages, screens, slides, or documents. Use when composing or recomposing layout structure.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com.
01-typography-and-fonts/font-selection-and-pairing. (Set type, then lay it out here.)02-color-brand-and-visual-identity.| Input | Source | Required evidence |
|---|---|---|
| Artefact, dimensions, and delivery format | Approved brief or existing source | Representative page, slide, screen, or viewport bounds |
| Ranked content inventory | Product owner, author, or content model | Blocks, relationships, and explicit importance order |
| Type scale and existing tokens | Design system or typography decision | Named scale, spacing token set, or documented provisional values |
| Binding template or brand constraints | Brand owner or supplied template | Source file, grid specification, and permitted deviations |
doctrine/references/type-scale-and-spacing.md.Pick ONE spacing unit and commit to it. Use a 4pt or 8pt base and express every gap,
pad, and margin as a multiple of it (8 · 16 · 24 · 32 · 48 · 64 …). This is the same rhythm
rule as doctrine/references/type-scale-and-spacing.md §Spacing rhythm — consistent multiples
are what separate "designed" from "assembled." Mixing 13px here and 19px there is a slop tell.
Lay a grid, then design against it. Choose a column count appropriate to the medium (12 columns is a flexible web default; documents often read best on a strict 2–3 column or a single wide measure). The grid is scaffolding, in the Müller-Brockmann sense — it exists so you can place elements with intent and, deliberately, break it for emphasis. A grid you never depart from produces the dead, even page; a grid you ignore produces chaos. Hold both.
Decide the focal point before placing anything. Every composition needs one element that wins — the largest, the most isolated, or the most off-centre. Name it. If everything is the same size and evenly spaced, there is no focal point and the eye has nowhere to enter: that is the single most common AI-slop layout failure.
Build hierarchy from three levers, not one. Combine scale (size jumps, per the type scale's ≥1.25 ratio and real 3×-class hero jumps), space (more whitespace around a thing reads as more important than the thing itself), and alignment (a shared edge groups elements; a broken edge separates them). Vignelli's discipline: a few strong relationships, ruthlessly repeated — not many timid ones.
Introduce intentional asymmetry and tension. Centre-everything is the safe, lifeless default. Following the Swiss/International Typographic tradition (Müller-Brockmann, Tschichold's asymmetric typography), shift weight off the centre line: a wide content column beside a narrow margin column, a hero pinned left with air to its right, an image bleeding off one edge. Asymmetry is what makes a layout look authored — a choice a templating tool would not make.
Treat whitespace as active material, not leftover. Negative space is a design element you place on purpose — to isolate the focal point, to group and separate, to set pace. Generous, uneven whitespace (tight where things relate, wide where they don't) signals confidence; uniform padding around everything signals a default. Do not "fill" empty space; earn it.
Align optically, not just mathematically. Numerically-equal coordinates often look wrong: a circle or triangle beside a square must overshoot the box to appear aligned; punctuation, bullets, and icons hang fractionally outside the text edge to look flush; large type needs negative side-bearing trims to sit on a margin. Trust the eye over the measurement (Lupton, Thinking with Type). Where baseline rhythm applies (long-form text/documents), snap leading to the spacing grid so lines across columns share a baseline.
Make the breakpoints deliberate — but prefer letting the grid adapt itself. For web/UI, the
layout must be redesigned at each breakpoint, not merely reflowed: a 3-column desktop grid that
collapses to a single stacked column of identical cards on mobile re-creates the slop pattern.
Decide what the focal point and the asymmetry become at each width. Two 2026 tools reduce how many
breakpoints you need: container queries (container-type: inline-size + @container — a
component adapts to its container, not the viewport, so one block lays out correctly in a wide
column and a narrow rail) and intrinsic layout (e.g. repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) reflows 1→N columns with no media query). Name them here; the sibling
03-layout-grid-and-composition/responsive-and-adaptive-layout owns the depth (breakpoint
strategy, fluid clamp(), the full intrinsic pattern library). For documents, decide how the grid
behaves across page breaks and on the slide master.
Run the anti-slop layout checklist (below). If any item fails, fix before shipping.
If the content genuinely is a uniform set (e.g. a true catalogue grid), say so and still break the monotony with a featured/hero item, a varied span, or asymmetric framing — never ship a flat, evenly-spaced card field as the whole composition.
| Condition | Choose | Wrong-choice failure |
|---|---|---|
| Repeated components need flexible placement | A consistent multi-column grid with named gutters | Freehand placement drifts and becomes costly to maintain |
| Long prose dominates | One bounded reading column plus optional margin furniture | A 12-column UI grid creates fragmented reading and excess measure |
| A fixed slide or cover needs emphasis | Sparse asymmetric scaffold with one deliberate grid break | Filling every cell removes tension and focal rank |
| Existing brand template is binding | Preserve its grid and correct only optical defects | Reinvention breaks brand continuity and approval expectations |
| Content relationships do not fit one spacing step | Use a base unit with a small documented semantic scale | Ad hoc gaps destroy rhythm; one identical gap destroys grouping |
Grounds only in human design authority — never in an AI tool's layout suggestions, per
doctrine/design-doctrine.md §2. Canonical sources for this skill:
When an AI tool happens to recommend a "12-col grid with even gutters and centred cards," treat that as evidence of the convergent mean to avoid, not as endorsement.
| Output | Consumer | Evidence and acceptance |
|---|---|---|
| Grid and spacing specification | Designer and implementer | Dimensions, columns, gutters, margins, base unit, and alignment anchors are explicit |
| Annotated layout/render | Reviewer and content owner | Grid overlay demonstrates intended relationships on representative content |
| Layout gate record | Approver | Tested dimensions, checklist results, corrections, and unresolved constraints are recorded |
doctrine/design-doctrine.md §0.examples/grid-template-worked.md — a real 12-column + 8pt landing-page grid applied
end-to-end: the stated decision (7+5 hero, 8+4 features, named focal point), copy-ready CSS Grid +
spacing tokens, a container-query variant, re-composition at each breakpoint, and the anti-slop
checklist run against it. Read this to see the workflow above turned into shippable layout.references/grid-systems-catalog.md (the named grid structures — manuscript, column, modular,
12/16-col, asymmetric, compound — with column/gutter/margin guidance, uneven-split ratios, and the
CSS Grid mapping; also flags container queries / intrinsic layout and defers their depth).references/spacing-rhythm.md (the operational 8pt scale: tokens, the proximity law for
uneven spacing, gutter vs. section spacing, baseline rhythm, and fluid clamp() spacing).doctrine/design-doctrine.md (§0 Mission — "the moat is looking human-made"; §2 sourcing-
authority asymmetry rule).doctrine/references/type-scale-and-spacing.md (spacing-unit rhythm, type-scale ratios and
real jumps, line-height, weight extremes — the numbers this layout's hierarchy is built on).03-layout-grid-and-composition/responsive-and-adaptive-layout (sibling — owns the depth of
container queries, intrinsic layout, breakpoint strategy, and fluid responsiveness; this skill
owns the grid + spacing decision the responsive layer adapts).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job