# makepad-2.0-troubleshooting

A skill that walks through the usual Makepad 2.0 and Splash failures: layouts that never appear, text hidden behind a background, broken overrides. Useful when the UI compiles but looks wrong.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 751
- Author: ZhangHanDong
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-troubleshooting/SKILL.md
- Updated: 2026-04-07
- HTML: https://affpapa.org/en/nevibecode/skills/makepad-20-troubleshooting

## What it does

Each entry follows the same shape: the symptom you see, the cause underneath, and the corrected code. First up is a container that resolves to zero height and hides everything inside it, plus text that stays invisible on a coloured background because of how draw calls are batched.

Splash specifics get their own write-ups. Named children use `:=`, static ones use `:` — mix them up and an override is dropped without a warning. Hex colours containing the letter `e` need the `#x` prefix, or the parser reads the digits as an exponent. `border_radius` wants a single `f32`, not an `Inset`. There is a catch with naming, too: a child deeper in the tree stays out of reach if any wrapper above it has no name, so `Item{label.text: …}` does nothing until every level on the path is labelled.

The skill points at two reference docs, `AGENTS.md` and `splash.md`. The `height: Fit` advice has an exception: under a parent with a fixed height, `Fill` is the right call.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-troubleshooting -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/makepad-2.0-troubleshooting/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-troubleshooting/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-troubleshooting -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/makepad-2.0-troubleshooting/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-troubleshooting -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/makepad-2.0-troubleshooting/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ZhangHanDong/makepad-skills makepad-2.0-troubleshooting
```

2. **Manually: put the files in place**
- File: `.github/skills/makepad-2.0-troubleshooting/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-troubleshooting -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ZhangHanDong/makepad-skills --path skills/makepad-2.0-troubleshooting
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/makepad-2.0-troubleshooting/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-troubleshooting -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-troubleshooting/SKILL.md

## When to use it
- trace why a container collapsed to zero height
- make text visible again on a filled background
- fix a property override that is silently ignored
- get past a parse error on a hex colour with `e`
- set corner radius without breaking the layout

## Example prompts
- My Makepad screen shows nothing at all — find where the height went to zero
- The label on my `RoundedView` is invisible even with `draw_text.color` set. What is batching doing here?
- Overriding `title.text` on the `Card` template has no effect; the default still shows

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [zhanghandong/makepad-skills](https://affpapa.org/en/nevibecode/by/zhanghandong/makepad-skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
