Skip to main content
skill CX Codex

makepad-2.0-layout — Claude Code skill for layout and setup

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a claude-code
Open on GitHub

What makepad-2.0-layout 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.

What it helps with

  • 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 for the agent

  • 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.

How to install makepad-2.0-layout

1Skills CLI (Vercel)

npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a claude-code

2Manually: put the files in place

~/.claude/skills/makepad-2.0-layout/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-layout/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about makepad-2.0-layout

How do I install makepad-2.0-layout in Claude Code?

Run npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-layout -a claude-code. The skill file is placed at ~/.claude/skills/makepad-2.0-layout/SKILL.md.

What does makepad-2.0-layout do?

It guides Makepad 2.0 layout work, including widget sizing, child flow, spacing, padding, and alignment. It also explains why some Fill heights collapse to zero inside Fit containers.

Why can a Makepad container become invisible?

A container using height: Fill inside a parent sized with Fit can end up with zero height. The guidance uses height: Fit for such containers, while ScrollYView uses Fill.

Similar skills

All skills for Frontend and UI →

From the same set14

makepad-2.0-splash Guides coding agents through the Splash scripting language for Makepad 2.0. Helps build reactive UIs inside Rust while avoiding silent layout bugs. CX Codex +1 ★ 751repo stars makepad-2.0-shaders This skill guides agents writing Makepad 2.0 shaders, from SDF2D shapes to custom widget drawing. Use it when shader work needs to follow Makepad’s GPU conventions. CX Codex +1 ★ 751repo stars makepad-2.0-performance A skill for tuning and debugging Makepad 2.0: draw batching, Splash VM garbage collection and texture caching explained. CX Codex +1 ★ 751repo stars makepad-2.0-migration Guides coding assistants through upgrading Rust UI code from Makepad 1.x to 2.0. Helps rewrite layout macros and lifecycle hooks. CX Codex +1 ★ 751repo stars makepad-2.0-events The makepad-2.0-events skill gives your agent a map of event and action handling in Makepad 2.0, from Splash on_click to the Rust MatchEvent trait. CX Codex +1 ★ 751repo stars makepad-2.0-dsl Teaches agents Makepad 2.0 DSL syntax, Splash runtime scripts, property merging, and Rust widget registration. CX Codex +1 ★ 751repo stars makepad-2.0-design-judgment Entry skill for Makepad 2.0 architecture: routes syntax questions to specialized skills and anchors design decisions on data flow, component split, and GPU rendering. CX Codex +1 ★ 751repo stars makepad-2.0-app-structure Walks you through the skeleton of a Makepad 2.0 app: Rust entry point, Splash markup, event handling and hot reload. CX Codex +1 ★ 751repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor