Takes a screenshot of any UI and spits out working code in React, Vue, or plain HTML/CSS. It analyzes layout structure, extracts exact colors, matches spacing, and builds component hierarchies that actually make sense. Defaults to React with Tailwind for modern stuff, plain HTML/CSS for simpler pages. The skill is thorough about responsive design and accessibility attributes, which saves you from backtracking later. Honestly most useful when you see a design you want to replicate quickly or need to turn mockups into a starting point without writing boilerplate from scratch. Won't be pixel perfect on complex designs, but it gets you 80% there with clean, deployable code.
npx -y skills add onewave-ai/claude-skills --skill screenshot-to-code --agent claude-codeInstalls into .claude/skills of the current project.
Convert UI screenshots into production-ready code with accurate styling and structure.
Given a screenshot of a UI design:
Examine the image carefully and identify:
Ask which framework is preferred:
Default: If not specified, use React with Tailwind CSS for modern designs, or plain HTML/CSS for simple pages.
Create the implementation:
For React/Vue:
For HTML/CSS:
Critical requirements:
min(), max(), clamp() for fluid typography where appropriateProvide:
Structure React + Tailwind output like this:
import React from 'react';
export default function ComponentName() {
return (
<div className="...">
{/* Component structure */}
</div>
);
}
Always include:
Navigation Bars: Flexbox with space-between, sticky positioning Card Grids: CSS Grid with auto-fit/auto-fill for responsiveness Hero Sections: Full-height with centered content, background images Forms: Proper labels, validation states, accessible inputs Modals: Fixed positioning, backdrop, focus management
When the screenshot is unclear or ambiguous:
Input: Screenshot of a landing page with hero section, feature cards, and footer
Response:
Aim to produce code so clean and accurate that it could be deployed immediately with minimal modifications.
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills