logoalt Hacker News

Paracompact • today at 6:08 AM • 2 replies • view on HN

Very interested to learn more about this approach, as I haven't really played around since the heyday of Stable Diffusion. Do you have more info on this process, especially going from start to finish?


Replies

vunderba • today at 6:17 AM

Most recent models from Anthropic/OpenAI make this pretty trivial.

1. Generate a couple of images using stylistic modifiers to get the look you want. Use either open-weight models like Krea 2 or Moss, or proprietary models such as gpt-image-2 or nano banana-pro.

2. Drop the images into a reference folder in your repo and ask Opus 5.5 (or other multimodal LLMs such as openai astra) to draft your UI/UX using those images as a mockups.

3. Guide them using whatever your tech stack is (SVGs, p5, pixijs, CSS, etc)

4. Opus 5.5 in particular is quite good at tool usage so access to Python3 or `magick` CLI tool and it'll handle bg removal, sprite separation, et cetera.

5. Iterate and refine

Honestly it’s all pretty straightforward. It’s mostly a matter of playing with it to get an intuitive sense of what is and isn’t possible.

jjcm • today at 6:57 AM

The two brain cell description of the approach:

1. Ask for a design in an image model 2. Paste that design into an LLM, ask it to build thing that looks like image

You can start getting fancy with the process, like including inspo mood boards for steering styles, using RAG to maintain brand consistency between designs, or breaking down an image for assets (ie rendering just the hero image, or a background pattern), etc. That's basically why you build a harness/skill to handle this approach, and what my tool (linen) does. There's a few others that do it well such as https://github.com/Leonxlnx/imagegen-skills.

> Do you have more info on this process, especially going from start to finish?

I apologize for a marketing page, but it is a page i personally built that shows a walkthrough of exactly this. https://linen.ai/learn/new-site will show you how I personally go from 0->1, but you can do this with any image model. Ones I'd recommend: gpt-image-2.5 (either variety), mai-image-2.7, and canva's craft model. Note that I'd avoid gpt-image-2.6, the way it was post trained made it steer towards much more simple/ipad-like designs.