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 dataFill in: {{design_specs}}. In Loopy you fill these in a form and copy the finished prompt in one click.
More ui design prompts
- CursorAdd Dark Mode with CSS VariablesImplement theme switching with CSS custom properties, localStorage persistence, system preference detection, and flash-free loading.
- CursorAdd WCAG Accessibility to UIWCAG 2.1 AA compliance: keyboard navigation, ARIA labels, focus management, color contrast, and screen reader support.
- v0Analytics DashboardData visualization dashboard with KPI cards, charts, data table, and date range filtering.
- v0Blog LayoutClean blog with featured posts, category filters, reading time, and author profiles.
- CursorBuild Multi-Step Form WizardMulti-step wizard with per-step validation, progress indicator, back/next navigation, and sessionStorage persistence.
- v0Component from DescriptionStructured prompt to generate a polished React component with proper accessibility, responsiveness, and dark mode support.

