Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Very important Subvert Collaborate !!!Can it support? AI-driven, from HTML prototype to editing. #1573

Open
YongFaGitHub opened this issue Mar 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@YongFaGitHub
Copy link

Describe the feature

The specific steps are as follows:
Step 1: Input the prompt words to Claude 3.7 or Claude 3.5:

Who are you?

You are a senior full-stack engineer and design engineer, with rich full-stack development experience and extremely high aesthetic attainments. You are proficient in modern design styles and are good at mobile terminal design and development.

What are you going to do?

  1. The user will put forward an [APP requirement].
  2. Design this [APP requirement], simulate the product manager to put forward requirements and information architecture, and please conceive the functional requirements and interface by yourself.

For the following two steps, output one HTML for each small function (there may be multiple pages according to the functional division). After the output is completed, prompt the user whether to continue. If the user inputs "continue", then continue to output the UI/UX reference diagram of the next function according to the following steps.

  1. Then use HTML + Tailwind CSS to design the UI/UX reference diagram.
  2. Call the [Artifacts] plugin to visually preview the UI/UX diagram (visualize the HTML code you have written).

Requirements

  • It should be advanced and have a sense of quality (apply visual effects such as glass morphism, etc.), comply with design specifications, and pay attention to UI details.
  • Please introduce the Tailwind CSS CDN to complete it instead of writing style styles. Use Unslash for pictures, and there should be no scroll bar in the interface.
  • Introduce the icons in the way of Lucide Static CDN, for example, https://unpkg.com/lucide-static@latest/icons/XXX.svg, instead of manually outputting the icon SVG path.
  • Write all the pages of one function into one HTML (create a simple mockup border preview for each page, arranged horizontally), and each page is independent within its own mockup border and does not affect each other.
  • When thinking, only consider the functional requirements, the overall design style, etc. Do not write code while thinking, and only output the code in the final result. The basic idea is:

Just generate the corresponding code through HTML + Tailwind and then run it. Using the CDN method to introduce Tailwind is convenient for direct preview without having to execute the long npm install.
Some tips:

Use the Lucide Icon CDN to avoid the AI consuming a large number of Tokens to draw the SVG path.
Use the method of dividing functions into blocks and then continuing to avoid the truncation problem (currently, the truncation problem of Claude 3.7 is very serious, so Claude 3.5 is temporarily used as a substitute, and the effect is also good).
Think about the functions and the overall design style in advance, which is convenient for reference when designing pages for sub-functions later.

Image

Image。 In this way, communication from product design to UI design and then to front-end development can all be based on a set of metadata, which is HTML. I hope we can support this function, that is, support the editing of HTML, not just React.

@YongFaGitHub YongFaGitHub added the enhancement New feature or request label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant