Design
makepad-core - Claude MCP Skill
Entry point for Makepad core concepts including layout, widgets, events, and styling. Start here to learn UI fundamentals.
SEO Guide: Enhance your AI agent with the makepad-core tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to entry point for makepad core concepts including layout, widgets, events, and styling. start here to ... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Makepad Core Concepts
This category covers the fundamental building blocks of Makepad UI development.
## Quick Navigation
| Topic | File | Use When |
|-------|------|----------|
| [Layout System](./layout.md) | Flow, sizing, spacing, alignment | Arranging UI elements |
| [Widgets](./widgets.md) | Common widgets, custom widgets | Building UI components |
| [Events](./events.md) | Event handling, hit testing, actions | Handling user interaction |
| [Styling](./styling.md) | Fonts, text styles, SVG icons | Styling text and graphics |
## Overview
Makepad is a Rust-based cross-platform UI framework using:
- `live_design!` macro for declarative UI layout
- Widget composition with `#[derive(Live, Widget)]`
- Event-driven architecture with typed Actions
- GPU-accelerated rendering
## Project Structure
```
my_app/
āāā src/
ā āāā app.rs # Main app entry, event routing
ā āāā lib.rs # Module declarations, live_register
ā āāā home/ # Feature modules
ā ā āāā mod.rs
ā ā āāā home_screen.rs
ā āāā shared/ # Reusable widgets
ā āāā mod.rs
ā āāā styles.rs # Theme, colors
ā āāā widgets.rs
āāā resources/ # Images, fonts
```
## live_design! Macro
The core of Makepad UI definition:
```rust
live_design! {
use link::theme::*;
use link::shaders::*;
use link::widgets::*;
App = {{App}} {
ui: <Root> {
main_window = <Window> {
body = <View> {
flow: Down,
spacing: 10,
padding: 20,
my_button = <Button> {
text: "Click me"
draw_bg: { color: #4A90D9 }
}
<Label> { text: "Hello Makepad" }
}
}
}
}
}
```
### DSL Syntax Reference
| Syntax | Purpose | Example |
|--------|---------|---------|
| `<Widget>` | Instantiate widget | `<Button> { text: "OK" }` |
| `name = <Widget>` | Named reference | `my_btn = <Button> {}` |
| `{{StructName}}` | Link to Rust struct | `App = {{App}} {}` |
| `flow: Down/Right` | Layout direction | `flow: Down` |
| `width/height` | Sizing | `width: Fill, height: Fit` |
| `padding/margin` | Spacing | `padding: {left: 10, top: 5}` |
| `dep("crate://...")` | Resource path | `dep("crate://self/logo.png")` |
### Size Values
| Value | Meaning |
|-------|---------|
| `Fill` | Fill available space |
| `Fit` | Fit to content |
| `Fixed(100.0)` | Fixed size in pixels |
| `All` | Fill in all directions |
## Module Registration
```rust
// In lib.rs
impl LiveRegister for App {
fn live_register(cx: &mut Cx) {
makepad_widgets::live_design(cx);
// Register your modules
crate::shared::live_design(cx);
crate::home::live_design(cx);
// Link theme
cx.link(live_id!(theme), live_id!(theme_desktop_dark));
}
}
// In each module's mod.rs
pub fn live_design(cx: &mut Cx) {
self::home_screen::live_design(cx);
self::sidebar::live_design(cx);
}
```
## Next Steps
- [Layout System](./layout.md) - Learn how to arrange UI elements
- [Widgets](./widgets.md) - Build custom components
- [Events](./events.md) - Handle user interactions
- [Styling](./styling.md) - Style your UI with fonts and icons
## References
- [Makepad Repository](https://github.com/makepad/makepad)
- [Makepad Examples](https://github.com/makepad/makepad/tree/main/examples)
- [ui_zoo example](https://github.com/makepad/makepad/tree/main/examples/ui_zoo)Signals
Information
- Repository
- ZhangHanDong/makepad-skills
- Author
- ZhangHanDong
- Last Sync
- 1/20/2026
- Repo Updated
- 1/20/2026
- Created
- 1/14/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
Confidence Check
Pre-implementation confidence assessment (ā„90% required). Use before starting any implementation to verify readiness with duplicate check, architecture compliance, official docs verification, OSS references, and root cause identification.
ollama_agent_guide
Ollama Agent Usage Guide
Related Guides
Python Django Best Practices: A Comprehensive Guide to the Claude Skill
Learn how to use the python django best practices Claude skill. Complete guide with installation instructions and examples.
Mastering Python Development with Claude: A Complete Guide to the Python Skill
Learn how to use the python Claude skill. Complete guide with installation instructions and examples.
Mastering VSCode Extension Development with Claude: A Complete Guide to the TypeScript Extension Dev Skill
Learn how to use the vscode extension dev typescript Claude skill. Complete guide with installation instructions and examples.