Skip to content
Back to skills

Vision To Code

ASecurity

Convert UI screenshots and designs to working code. Use when translating visual designs, mockups, or screenshots into HTML/CSS/React components.

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 10, 2026
developmentgoreact

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add lovedragonball/power-ranger-toolkit --skill vision-to-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vision To Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vision To Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lovedragonball-vision-to-code/badge)](https://www.skillsdirectory.com/skills/lovedragonball-vision-to-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vision-to-code
description: Convert UI screenshots and designs to working code. Use when translating visual designs, mockups, or screenshots into HTML/CSS/React components.
---

# 👁️ Vision to Code Skill

## Workflow

### Step 1: Analyze Image
1. Identify layout structure (grid, flex, columns)
2. List all UI components
3. Note colors, fonts, spacing
4. Identify interactive elements

### Step 2: Plan Component Structure
```
Page
├── Header (nav, logo, menu)
├── Hero (title, subtitle, CTA)
├── Features (grid of cards)
├── Testimonials (carousel)
└── Footer (links, social)
```

### Step 3: Generate Code

---

## Common Patterns

### Card Component
```jsx
<div className="card">
  <img src={image} alt={title} className="card-image" />
  <div className="card-content">
    <h3 className="card-title">{title}</h3>
    <p className="card-description">{description}</p>
    <button className="card-button">Learn More</button>
  </div>
</div>
```

```css
.card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
```

### Navigation
```jsx
<nav className="navbar">
  <div className="logo">Brand</div>
  <ul className="nav-links">
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Services</a></li>
  </ul>
  <button className="cta-button">Get Started</button>
</nav>
```

---

## Design Token Extraction

| Visual Element | CSS Property | Example |
|----------------|--------------|---------|
| Primary Color | `--primary` | `#6366f1` |
| Background | `--bg` | `#f8fafc` |
| Text | `--text` | `#1e293b` |
| Border Radius | `--radius` | `12px` |
| Shadow | `--shadow` | `0 4px 6px rgba(0,0,0,0.1)` |
| Font | `--font` | `'Inter', sans-serif` |

---

## Responsive Approach

```css
/* Mobile First */
.container {
  padding: 1rem;
}

/* Tablet */
@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}
```

---

## Checklist

- [ ] วิเคราะห์ layout โครงสร้าง
- [ ] ระบุ components ทั้งหมด
- [ ] Extract design tokens (colors, fonts)
- [ ] สร้าง HTML structure
- [ ] เพิ่ม CSS styling
- [ ] ทำให้ responsive
- [ ] เพิ่ม interactivity (hover, click)
- [ ] Test บน multiple screen sizes

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…