Claude prompt

Convert Figma to Code

Structured prompt for converting Figma design specifications into pixel-perfect React components.

Convert this Figma design into a React component.

DESIGN SPECIFICATIONS:
{{design_specs}}

RULES:
- Match the design pixel-perfectly
- Use Tailwind CSS with the project's design tokens
- Infer responsive behavior: stack on mobile, side-by-side on desktop
- Replace hard-coded colors with CSS variables or Tailwind theme colors
- All text content should be passed as props (not hard-coded)
- Images use next/image with proper width/height/alt
- Interactive elements have hover/focus/active states
- Animations use Tailwind transitions or framer-motion (specify which)

OUTPUT:
1. The component code
2. A TypeScript interface for its props
3. Usage example showing the component with sample data

Fill in: {{design_specs}}. In Loopy you fill these in a form and copy the finished prompt in one click.