makepad-layout

Generate Makepad layout code for vertical, horizontal, and fixed-flexible regions.

1|1|Updated Apr 10, 2025
One-click install
npx skills add https://github.com/SageV1/makepad-skills --skill makepad-layout-sagev1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: makepad-layout
Source: https://github.com/SageV1/makepad-skills/tree/main/skills/makepad-layout
Command: npx skills add https://github.com/SageV1/makepad-skills --skill makepad-layout-sagev1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides expert guidance to generate, reason about, and apply Makepad layout patterns, enabling precise control over widths, heights, flow, alignment, padding, and margins to build robust, responsive interfaces.

Core Features & Use Cases

  • Generate concrete Makepad layout snippets for common patterns (basic container, centered view, horizontal rows, fixed+flexible regions).
  • Explain layout concepts (Walk, Layout, Flow, Size, Align, Margin, Padding) and answer layout questions with practical examples.
  • Offer direct Quick Start guidance and references to local documentation for hands-on practice.

Quick Start

Create a vertical container with a fixed header of 60.0 height, a flexible content area, and a fixed footer of 40.0 height.

Frequently Asked Questions about makepad-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a vertical layout with fixed and flexible regions in Makepad?

To create a Makepad vertical layout, set the flow property to Down, assign fixed float values to header and footer heights, and let the content area flex to fill remaining space.

How does the Makepad flow property control UI alignment and positioning?

The Makepad flow property arranges child views vertically using Down or horizontally using Right, while align and margin properties adjust positioning within that directional flow.

What is the best way to center a view in a Makepad UI layout?

To center a view in Makepad, set the parent container's align property to center horizontally and vertically, and define explicit width and height on the child view.

Does Makepad layout support padding and margin for responsive UI patterns?

Makepad layout supports padding and margin properties to control internal and external view spacing, working alongside width, height, and flow to build responsive interfaces.

Can I generate Makepad layout code for horizontal rows and complex compositions?

You can generate Makepad layout code for horizontal rows by setting flow to Right, combining fixed and flexible widths to create complex view compositions like sidebars and dynamic content areas.

Why does my Makepad layout view not size correctly when using width and height properties?

Makepad layout sizing issues often occur when fixed width or height values conflict with parent flex constraints; ensure fixed dimensions respect the flexible boundaries defined by the parent flow.