makepad-2-0-layout
하는 일
이 에이전트는 Makepad로 만든 애플리케이션에서 시각 요소를 배치(레이아웃)하는 데 도움을 줍니다. ‘레이아웃 터틀’이라는 시스템을 사용해 구성 요소가 스스로 크기를 정하고 서로의 위치를 정하는 방식을 설명합니다.
사용하는 경우
- ✓Makepad 앱의 시각 인터페이스를 만들 때.
- ✓화면의 요소가 예상대로 보이지 않을 때.
- ✓구성 요소가 올바른 공간을 차지하도록 하고 싶을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-2-0-layout/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“텍스트가 사용 가능한 너비를 채우되 500픽셀을 넘지 않게 하려면 어떻게 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
‘레이아웃 터틀’ 시스템을 사용합니다. 이 시스템은 구성 요소가 스스로 크기를 정하는 방식(‘walk’)과 컨테이너가 자식 요소를 배치하는 방식(‘layout’)을 정의합니다. ‘width’, ‘height’, ‘flow’, ‘spacing’ 같은 속성으로 모습을 조절합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Limitations
- Verify against current Makepad 2.0 docs; upstream APIs change frequently.
- Do not run bundled scripts without explicit user approval.
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
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
Label{text: "I stretch to fill the width"}
}
// Fit: shrinks to content
View{
width: Fit height: Fit
padding: 10
Label{text: "I am only as wide as this text"}
}
// Fixed: exact pixel size
View{
width: 300 height: 200
Label{text: "I am exactly 300x200 pixels"}
}
// Constrained Fill: fills but within bounds
View{
width: Fill{min: 200 max: 600} height: Fit
flow: Down padding: 16
Label{text: "I fill available space but stay between 200-600px"}
}
CRITICAL: height: Fit on Containers
This is the number one layout bug in Makepad.
The default height is Fill. When your output renders inside a Fit container,
Fill inside Fit creates a circular dependency and resolves to 0 pixels.
Your entire UI becomes invisible.
Rule: ALWAYS set height: Fit on every View, SolidView, RoundedView, and similar
container unless the parent has a fixed or Fill height.
// CORRECT -- height: Fit makes the container visible
View{
width: Fill height: Fit
flow: Down padding: 10
Label{text: "I am visible"}
}
// WRONG -- defaults to height: Fill, resolves to 0px, invisible
View{
width: Fill
flow: Down padding: 10
Label{text: "I am invisible (0px tall)"}
}
Exceptions where height: Fill is acceptable:
- Inside a fixed-height parent:
View{
height: 400
View{
height: Fill
Label{text: "I fill the 400px parent"}
}
}
- Inside a
height: Fillchain that ultimately reaches a known size (e.g., Window body). - ScrollYView always uses
height: Fillbecause it must fill its parent to scroll.
margin
Margin adds space around the outside of a widget.
// Uniform margin on all sides
Label{text: "Hello" margin: 10}
// Selective margin with Inset
Label{
text: "Indented"
margin: Inset{top: 5 bottom: 5 left: 20 right: 20}
}
// Zero margin (note the trailing dot for float literal)
Label{text: "Flush" margin: 0.}
Layout System (Child Arrangement)
Layout controls how a container positions its children.
flow (Direction)
| Syntax | Meaning | CSS Equivalent |
|---|---|---|
flow: Right |
Left-to-right, single line (default) | flex-direction: row |
flow: Down |
Top-to-bottom, single column | flex-direction: column |
flow: Overlay |
Stack children on top of each other | position: absolute stacking |
flow: Flow.Right{wrap: true} |
Left-to-right with wrapping | flex-wrap: wrap |
flow: Flow.Down{wrap: true} |
Top-to-bottom with wrapping | column wrap |
use mod.prelude.widgets.*
// Vertical stack (most common)
View{
width: Fill height: Fit
flow: Down spacing: 10
Label{text: "First"}
Label{text: "Second"}
Label{text: "Third"}
}
// Horizontal row
View{
width: Fill height: Fit
flow: Right spacing: 10
Label{text: "Left"}
Label{text: "Center"}
Label{text: "Right"}
}
// Overlay -- children stacked on top of each other
…
자주 묻는 질문
왜 UI가 사라지나요?
부모에 높이가 정해져 있지 않은 컨테이너 안에서 ‘height: Fill’을 쓰면 자주 생깁니다. 규칙은 부모에 정해진 높이가 없는 한 컨테이너에는 ‘height: Fit’을 쓰는 것입니다.
‘Walk’와 ‘Layout’은 무엇이 다른가요?
‘Walk’는 한 구성 요소의 크기(너비, 높이)를 정하고, ‘Layout’은 컨테이너가 내부 구성 요소를 어떻게 배치할지(방향, 간격, 정렬)를 정합니다.
요소를 세로로 쌓으려면 어떻게 하나요?
요소를 담는 컨테이너에 `flow: Down`을 씁니다. `spacing` 속성으로 요소 사이의 간격을 조절할 수도 있습니다.
상세 정보
작성자의 원본 설명
Makepad 2.0 guidance for layout; use when building or debugging Makepad UI code.
인기도
- GitHub 스타
- 48k
- 순위
- #5142
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.