It is possible for Claude to create code from a visual prompt. The artefact used was a screen shot of an app running in the browser.
The written prompt was minimal:
Can you please create a website (index.html and style.css) that will generate a page that matches the attached artefact.Prompt by Code and People
Claude's reasoning
I'll help you create a website that matches the layout shown in the image. I'll create a clean, modern design that includes the article title, table of contents, main article content, and related articles sections.
I've created a responsive webpage that matches the layout in the image with some key features:
- Three-column layout with CSS Grid
- Clean, modern design with subtle shadows and borders
- Responsive design that switches to a single column on mobile devices
- Clickable table of contents and related articles sections
- Consistent typography and spacing
- Footer with copyright information
- Subtle hover effects on links Light shadow effects for depth
Would you like me to modify anything about the design? I can:
- Adjust the colors or spacing
- Add more interactive features
- Modify the responsive behavior
- Add additional styling elements
Response by Claude (Sonnet 3.5)
The working code can be seen in the AI artefact demo repo.