# makepad-2.0-layout

This skill guides an agent through sizing widgets and arranging children in Makepad 2.0. Use it when building a screen or tracing an invisible container.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 751
- Author: ZhangHanDong
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-layout/SKILL.md
- Updated: 2026-04-07
- HTML: https://affpapa.org/en/nevibecode/skills/makepad-20-layout

## What it does

The skill covers Makepad 2.0’s layout model: `Walk` controls a widget’s size, while `Layout` arranges its children. It helps an agent choose `Fill` or `Fit`, set flow direction, adjust spacing and padding, and align content. These are Makepad rules, not CSS flexbox or grid.

A key case is a `Fill` height inside a parent sized with `Fit`: the child’s height can resolve to zero, leaving the UI invisible. The guidance recommends setting `height: Fit` on containers in that situation; `ScrollYView` is an exception and uses `height: Fill`. The skill also covers fixed and constrained sizing, wrapping flow, and overlay layouts.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/makepad-2.0-layout/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-layout/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/makepad-2.0-layout/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/makepad-2.0-layout/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ZhangHanDong/makepad-skills makepad-2.0-layout
```

2. **Manually: put the files in place**
- File: `.github/skills/makepad-2.0-layout/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ZhangHanDong/makepad-skills --path skills/makepad-2.0-layout
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/makepad-2.0-layout/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-layout/SKILL.md

## When to use it
- size a widget with `Fill` or `Fit`
- arrange children in a row or column
- set container padding and widget margins
- trace a container that collapses to zero height
- align children within a container

## Example prompts
- Build a Makepad 2.0 screen with a form and heading stacked vertically; choose suitable container heights.
- Inspect this Makepad layout and find why a container with `height: Fill` disappears.
- Arrange these cards in a row that wraps, with consistent gaps.

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [zhanghandong/makepad-skills](https://affpapa.org/en/nevibecode/by/zhanghandong/makepad-skills.md) — 14 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
