Skip to content
Agentmart
Submit a tool

android-design-to-code

Use when translating Figma, Sketch, or Adobe XD designs into Jetpack Compose code for Android.

Skill by prasad-vennam

IndexedMIT★ 11
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/prasad-vennam-android-design-to-code

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when translating Figma, Sketch, or Adobe XD designs into Jetpack Compose code for Android.

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/android-design-to-code

What's inside

Skill name
android-design-to-code
Description
Use when translating Figma, Sketch, or Adobe XD designs into Jetpack Compose code for Android.
License
MIT
Instructions
65 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Android Design to Code (The Bridge) 📐🌉

Professional strategies for translating high-fidelity design specifications into clean, semantic, and pixel-perfect Jetpack Compose code.

## ⚡ When to Use
- **UI Handover**: Implementing a new screen from Figma/Sketch.
- **Micro-Copy**: Translating exact text styles and case formatting.
- **Grid Alignment**: Replicating specific spacing and layout grids.
- **Component Building**: Creating atoms/molecules from design symbols.
- **Pixel Perfection**: Verifying accuracy through developer tools.

## 🏗️ The 4 Principles of High-Fidelity Translation

1.  **Semantic Match**: Use MaterialTheme tokens (Primary, BodyLarge) instead of raw hex/pixel values.
2.  **Structural Accuracy**: Replicate Flexbox (Row, Column) and Constraint systems as intended.
3.  **Interaction Fidelity**: Add the correct hover, press, and click ripple effects.
4.  **Responsive Layouts**: Handle how the design should shrink or grow beyond the mock's dimensions.

## 🛠️ Translation Workflow

### 1. Spacing & Grids (The 8dp Rule)
- **Rule**: Most modern Android designs use an **8dp grid**.
- Use `8.dp`, `16.dp`, `24.dp`, etc.
- In Compose: `Spacer(Modifier.height(16.dp))` or `PaddingValues(16.dp)`.

### 2. Colors & Typography
- Don't just copy the `0xFFAABBCC`. Check if it's already in the `colorScheme.primary` or `surface`.
- Use the M3 **Typography scale** (HeadlineLarge, BodyMedium) to match the designer's intent.

### 3. Shadows & Elevation
- Designs often have custom "Soft Shadows".
- **Rule**: In Android, use `Modifier.shadow()` with a high `elevation` for M2, or use `MaterialTheme.colorScheme.surfaceColorAtElevation()` for modern M3 designs.

## 🚀 Speeding Up Implementation

- [ ] **Figma Plugins**: Use "Relay" or "Copy as Compose" plugins to generate base code.
- [ ] **Lottie/Rive**: Export complex animations as JSON or RIV files for pixel-perfect motion.
- [ ] **Vector Assets**: Export as SVG or VectorDrawable (AVD) for sharp rendering.

## 📐 Interaction Best Practices

- **Ripple Effects**: Ensure all `clickable` modifiers have the standard ripple or custom `Indication`.
- **States**: Implement all design states (Enabled, Disabled, Pressed, Hovered).
- **Haptics**: Add `LocalHapticFeedback` for tactile confirmation on success/error.

## 🧪 Verification & Checklist

- [ ] **The "Overlay" Test**: Use a semi-transparent screen capture of the design overlaid on the running app.
- [ ] **Layout Inspector**: Verify all margins, paddings, and alignment match the specs.
- [ ] **Dynamic Font Scales**: Does the design survive a 200% font size increase?
- [ ] **Localization**: Does the layout break with long German or Russian strings?

## 📜 Key Terms for Designers

- **dp**: Density-independent pixels (The standard).
- **sp**: Scalable pixels (For text only).
- **Material 3**: The framework we use to build.
- **Composable**: The UI function we are creating.

## 🔗 Related Resources
- [Android Adaptive Layouts](../android-adaptive-layouts/SKILL.md)
- [Design System (M3) Skill](../android-design-system-m3/SKILL.md)
- [Accessibility Skill](../android-accessibility/SKILL.md)

From prasad-vennam/Awesome-Android-AI-Agent-Skills, MIT.

More from prasad-vennam/Awesome-Android-AI-Agent-Skills

Signals

Stars
11
Forks
0
Open issues
0
Last commit (this folder)
Mar 31, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from prasad-vennam

Cite this page

android-design-to-code skill. Agent Mart. https://agentmart.dev/skills/prasad-vennam-android-design-to-code (last updated 2026-10-24)