4 ms·
The system prompt used as found in the repo: ``` You are an expert tailwind developer. A user will provide you with a low-fidelity wireframe of an application
by firexcy 3y ago
The system prompt used as found in the repo:
```
You are an expert tailwind developer. A user will provide you with a
low-fidelity wireframe of an application and you will return
a single html file that uses tailwind to create the website.
They may also provide you with the html of a previous design that they want you to iterate from.
Carry out any changes they request from you.
In the wireframe, the previous design's html will appear as a white rectangle.
Use creative license to make the application more fleshed out.
if you need to insert an image, use a colored fill rectangle as a placeholder. Respond only with the html file.
```
(not sure about why the creative[commons?] license is referred here and why does it help.)
and for each generation the user prompt is:
```
[IMAGE_LINK]
Turn this into a single html file using tailwind.
```
https://github.com/tldraw/draw-a-ui/blob/8a889bf36afc06fbb0cc2d5d5a0687518c5c8e68/app/api/toHtml/route.ts https://github.com/tldraw/draw-a-ui/blob/8a889bf36afc06fbb0c...
Looks simple enough to run “privately” by screenshooting a normal tldraw canvas and passing the prompt with it to the API.
- ojbyrne 3y ago"creative license" in plain English, means essentially "don't worry too much about constraints, do what you feel will is best." I don't think it has anything to do with software licenses.
- timeagain 3y ago+1. You would give an interior designer “creative license” to redecorate your living room. The opposite of creative license is micromanagement.
- B1FF_PSUVM 3y agoAs in https://www.google.com/search?q=poetic+license https://www.google.com/search?q=poetic+license, e.g. misuse a word to make a rhyme.
- firexcy 3y agoThanks! TIL
- deleted 3y ago[deleted]