Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah you should be able to modify the prompts to achieve that easily: https://github.com/abi/screenshot-to-code/blob/main/backend/...

I'll try to add a settings panel in the UI as well.




Hah I forget this is just a prompt.

I'd suggest modifying the prompt to something like:

- Use CSS 'display: grid;' for most UI elements

- Use CSS grid justify and align properties to place items inside grid elements

- Use padding to separate elements from their children elements

- Use gap to to separate elements from their sibling elements

- Avoid using margin at all

To produce modern-looking HTML without wrapper elements, floats, clearfixes or other hacks.


Good idea! Will try to incorporate that. The hardest thing about modifying the prompts is not having a good evaluation method for if it's making things better or worse.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: