design2code icon indicating copy to clipboard operation
design2code copied to clipboard

How do we add a new CSS or UI library to generate UI based on the provided UI

Open iconixgroups opened this issue 1 year ago • 2 comments

Can we have a option to provide the URL of the library as a user and can the app then refer the selected CSS classes or Library to generate the code.

iconixgroups avatar Mar 07 '24 07:03 iconixgroups

For test purpose you may use the following UI https://ui.shadcn.com/docs/components/accordion

iconixgroups avatar Mar 07 '24 07:03 iconixgroups

@iconixgroups The success of integrating a library with a language model, such as GPT-4, largely depends on how well-known the library is. For example, if you're looking to generate a mobile page using a widely recognized framework like Flutter, simply adding a corresponding prompt should suffice, as the model is already familiar with it. However, for lesser-known, custom, or newly created libraries, the process is more intricate than just modifying the prompt. In these cases, you would need to provide additional information to the model to enable it to generate code that utilizes that specific library.

mostafasadeghi97 avatar Mar 07 '24 10:03 mostafasadeghi97