Agent skill · Design & Presentation

makepad-2.0-layout

makepad layout, makepad width, makepad height, makepad flex, makepad flow, makepad padding, makepad margin, makepad spacing, makepad align, makepad sizing, Fill, Fit, Inset, Flow.Down, Flow.Right, ScrollXView, ScrollYView, 布局, 对齐, 间距, 填充, 排版, 滚动视图, 尺寸, 宽度, 高度

ZhangHanDonggithub.com/ZhangHanDongGitHub ↗
claude-code
Install
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 19 KB
Bundled scripts: none
Path: skills/makepad-2.0-layout/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 745

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Makes an agent implement Makepad 2.0 layout behavior by outlining how widgets size themselves (Walk) and how containers arrange children (Layout). It covers width/height semantics, margin, padding, flow directions, alignment, clipping, insets, and scrollable containers (ScrollYView, ScrollXView, ScrollXYView). It also explains the Filler spacer, common patterns, and overlays guidance for popups.

How it works

The skill instructs the agent to treat each container widget as having both Walk properties (size) and Layout properties (how children are laid out). It defines concrete syntax for sizing (width/height values like Fill, Fit, fixed numbers, and constrained Fill) and for layout (flow directions, spacing, padding, align, clip_x/clip_y). It includes examples showing how to implement common patterns (vertical pages, toolbars, card grids, split panels) and how to use ScrollYView, ScrollXView, and ScrollXYView with explicit viewport rules. It also details Inset usage for padding and margin, and how Filler pushes siblings with rules about when to place it between Fit siblings. It provides guidance for overlay popups using walk.abs_pos rather than margin tweaks. It prescribes that Scrollable containers use height: Fill to provide a fixed viewport for scrolling. It includes a lot of explicit code samples and descriptive rules.

When to use it

Use when constructing UI with Makepad 2.0 layout semantics, particularly in scenarios requiring precise control over widget sizing (width/height constraints) and container layouts (flow, spacing, alignment), as well as when implementing scrollable content or popup overlays. Trigger phrases include makepad layout, makepad width, makepad height, makepad flex, makepad flow, and related terms in Chinese such as 布局, 对齐, 间距, 填充, 排版, 滚动视图, 尺寸, 宽度, 高度.

What it can touch

The skill references tools: claude-code. It documents widgets like View, ScrollYView, ScrollXView, ScrollXYView, Filler, Hr, Card, Splitter, SolidView, ButtonFlatter, ButtonFlat, Image, Label, Inset, and Margin/Padding constructs. It specifies usage of concepts like width, height, flow, align, padding, margin, clip_x, clip_y, and walk.abs_pos for overlays. It does not prescribe executing external scripts beyond code blocks shown, and it quotes commands and file names exactly as written in the skill (e.g., View{...}, ScrollYView{...}, Inset{...}).

Caveats

The skill emphasizes critical behavior: ensure height: Fit on containers to avoid circular 0px sizing, and only use Filler between Fit siblings. It notes that ScrollYView uses height: Fill for its viewport. It warns about overlay popup anchoring using top-level overlays for independent float behavior rather than relying on local overflow. It does not discuss licensing or external risk beyond these usage cautions. All facts are drawn directly from the described behavior and examples in the skill.

From the SKILL.md

# Makepad 2.0 Layout System Makepad uses a **layout turtle** system -- not CSS flexbox, not CSS grid. The turtle walks through children one by one, placing each widget according to two core concepts: - **Walk** -- how a widget sizes itself (width, height, margin) - **Layout** -- how a container arranges its children (flow, spacing, padding, align) Every container widget (View, SolidView, RoundedView, ScrollYView, etc.) has both Walk properties (its own size) and Layout properties (how it lays out children). --- ## Walk System (Widget Sizing) Walk controls how an individual widget claims space inside its parent. ### width / height | Syntax | Meaning | |--------|---------| | `width: Fill` | Fill all remaining horizontal space (default) | | `width: Fit` | Shrink to fit content | | `width: 200` | Fixed 200 pixels | | `width: Fill{min: 100 max: 500}` | Fill with constraints | | `width: Fit{max: Abs(300)}` | Fit content, capped at 300px | | `height: Fill` | Fill all remaining vertical space (default) | | `height: Fit` | Shrink to fit content | | `height: 100` | Fixed 100 pixels | ``` use mod.prelude.widgets.* // Fill: takes all available width View{ width: Fill height: Fit flow: Down Lab

What's inside
Steps it walks through
  1. Walk System (Widget Sizing)
  2. width / height
  3. CRITICAL: height: Fit on Containers
  4. margin
  5. Layout System (Child Arrangement)
  6. flow (Direction)
  7. spacing
  8. padding
  9. align (Child Alignment)
  10. clipx / clipy
  11. Overlay Popups: walk.abspos vs margin
  12. Inset Syntax
  13. Scrollable Containers
  14. Filler (Spacer Widget)
Ships with 1 file
  • references/layout-patterns.md
More from makepad-skills
All skills →
About this skill
What does the makepad-2.0-layout skill do?

makepad layout, makepad width, makepad height, makepad flex, makepad flow, makepad padding, makepad margin, makepad spacing, makepad align, makepad sizing, Fill, Fit, Inset, Flow.Down, Flow.Right, ScrollXView, ScrollYView, 布局, 对齐, 间距, 填充, 排版, 滚动视图, 尺寸, 宽度, 高度

How do I install it?

Run `npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ZhangHanDong/makepad-skills, a repository with 745 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going