본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #5150

makepad-layout

하는 일

이 도구는 Makepad의 레이아웃 시스템을 사용해 인터페이스의 시각 요소를 배치하는 데 도움을 줍니다. 항목의 정렬, 항목 사이의 간격, 화면을 채우는 방식을 정의할 수 있습니다.

사용하는 경우

  • ✓버튼을 한 줄로 배치해야 할 때.
  • ✓화면 중앙에 텍스트를 놓고 싶을 때.
  • ✓헤더는 전체 너비를, 콘텐츠는 나머지를 차지하도록 할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-layout/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-layout/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Makepad에서 버튼을 화면 가운데에 놓으려면 어떻게 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Makepad는 시각적으로 요소를 배치합니다. ‘flow’(방향), ‘align’(정렬), ‘padding’(내부 여백) 같은 속성을 설정해 화면에서 항목의 위치와 크기를 조절합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Supporting material availability

This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:

  • ./references/layout-system.md
  • ./references/core-types.md

Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.

Makepad Layout Skill

Version: makepad-widgets (dev branch) | Last Updated: 2026-01-19

Check for updates: https://crates.io/crates/makepad-widgets

You are an expert at Makepad layout system. Help users by:

  • Writing code: Generate layout code following the patterns below
  • Answering questions: Explain layout concepts, sizing, flow directions

When to Use

  • You need to size, align, or position widgets in a Makepad UI.
  • The task involves Walk, Align, Fit, Fill, padding, spacing, or container flow configuration.
  • You want Makepad-specific layout solutions for centering, responsiveness, or composition.

Documentation

Refer to the local files for detailed documentation:

  • ./references/layout-system.md - Complete layout reference
  • ./references/core-types.md - Walk, Align, Margin, Padding types

IMPORTANT: Documentation Completeness Check

Before answering questions, Claude MUST:

  1. Read the relevant reference file(s) listed above
  2. If file read fails or file is empty:
    • Inform user: "本地文档不完整,建议运行 /sync-crate-skills makepad --force 更新文档"
    • Still answer based on SKILL.md patterns + built-in knowledge
  3. If reference file exists, incorporate its content into the answer

Key Patterns

1. Basic Layout Container

<View> {
    width: Fill
    height: Fill
    flow: Down
    padding: 16.0
    spacing: 8.0

    <Label> { text: "Item 1" }
    <Label> { text: "Item 2" }
}

2. Centering Content

<View> {
    width: Fill
    height: Fill
    align: { x: 0.5, y: 0.5 }

    <Label> { text: "Centered" }
}

3. Horizontal Row Layout

<View> {
    width: Fill
    height: Fit
    flow: Right
    spacing: 10.0
    align: { y: 0.5 }  // Vertically center items

    <Button> { text: "Left" }
    <View> { width: Fill }  // Spacer
    <Button> { text: "Right" }
}

4. Fixed + Flexible Layout

<View> {
    width: Fill
    height: Fill
    flow: Down

    // Fixed header
    <View> {
        width: Fill
        height: 60.0
    }

    // Flexible content
    <View> {
        width: Fill
        height: Fill  // Takes remaining space
    }
}

Layout Properties Reference

Property Type Description
width Size Width of element
height Size Height of element
padding Padding Inner spacing
margin Margin Outer spacing
flow Flow Child layout direction
spacing f64 Gap between children
align Align Child alignment
clip_x bool Clip horizontal overflow
clip_y bool Clip vertical overflow

Size Values

Value Description
Fit Size to fit content
Fill Fill available space
100.0 Fixed size in pixels
Fixed(100.0) Explicit fixed size

Flow Directions

Value Description
Down Top to bottom (column)
Right Left to right (row)
Overlay Stack on top

Align Values

Value Position
{ x: 0.0, y: 0.0 } Top-left
{ x: 0.5, y: 0.0 } Top-center
{ x: 1.0, y: 0.0 } Top-right
{ x: 0.0, y: 0.5 } Middle-left
{ x: 0.5, y: 0.5 } Center
{ x: 1.0, y: 0.5 } Middle-right
{ x: 0.0, y: 1.0 } Bottom-left
{ x: 0.5, y: 1.0 } Bottom-center
{ x: 1.0, y: 1.0 } Bottom-right

Box Model

+---------------------------+
|         margin            |
|  +---------------------+  |
|  |      padding        |  |

…
자주 묻는 질문

‘Fill’과 ‘Fit’은 무엇을 뜻하나요?

‘Fill’은 요소가 사용 가능한 공간을 모두 차지하게 하고, ‘Fit’은 요소가 내용물 크기에 맞게 조정되게 합니다.

요소 사이에 간격은 어떻게 만드나요?

‘flow: Right’(가로 배열)나 ‘flow: Down’(세로 배열)로 배치된 항목 사이의 간격을 ‘spacing’ 속성으로 설정할 수 있습니다.

‘Overlay’는 무엇인가요?

요소들이 층처럼 서로 겹쳐 쌓이는 레이아웃 방향입니다.

상세 정보

작성자의 원본 설명

CRITICAL: Use for Makepad layout system. Triggers on: makepad layout, makepad width, makepad height, makepad flex, makepad padding, makepad margin, makepad flow, makepad align, Fit, Fill, Size, Walk, "how to center in makepad", makepad 布局, makepad 宽度, makepad 对齐, makepad 居中

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5150
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬