# makepad-2.0-vector

Teaches your coding assistant how to write vector shapes and animations for Makepad 2.0. Generates inline SVG paths, gradients, and UI icons.

- 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-vector/SKILL.md
- Updated: 2026-04-07
- HTML: https://affpapa.org/en/nevibecode/skills/makepad-20-vector

## What it does

The skill guides code generation for the Makepad 2.0 `Vector` component in Splash. Instead of loading asset files with `Svg`, it defines resolution-independent paths, rectangles, circles, and drop shadows directly in Rust UI declarations.

Vector elements rely strictly on SVG attributes such as `fill` or `stroke_width`. Standard Makepad `draw_bg.*` styling rules produce zero visual effect on these inner shapes. Keyframe transitions use `Tween` assigned right to a property value rather than a separate wrapper node.

Repeating animations need a boolean `loop_: true` or a raw number: passing a string argument breaks the loop logic and stops after one pass. The skill targets the active `dev` branch of `makepad-widgets`.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/makepad-2.0-vector/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-vector
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-vector -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-vector/SKILL.md

## When to use it
- render vector icons directly in Makepad UI code
- configure linear and radial gradients without external asset files
- animate shape coordinates and colors using Tween properties
- group vector primitives with matrix transforms and drop shadows

## Example prompts
- Build a checkmark icon using the Vector widget and an SVG path for my Makepad interface
- Create a pulsing status circle using Tween property animation in Makepad
- Draw a rectangle with rounded corners and a linear gradient fill in Splash

## 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) — 14 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
