How to Truly Vibe Code a Beautiful Official Website with AI

AI insights15 min read

A polished AI-built website doesn't come from one prompt. Set the visual direction with references and Figma, assemble a clean skeleton from proven blocks, then add imagery, restrained motion and human-sounding copy; taste and restraint at key moments matter more than prompt length.

Yesterday I shared a few new product website designs made with Gemini, and I didn't expect so many people to be curious about the results and how they were made, all asking me how I used AI to achieve this level of polish.

This is a full long-page display image of the Scatter/Canvasight official website. The page uses a hazy, softened light-blue gradient texture as the visual backdrop at the top and bottom, with an overall minimalist and fresh white-and-blue color scheme. The site name Scatter is marked at the top of the page, followed by multiple groups of interface feature demo screenshots with blue glow effects, paired with corresponding text descriptions, clearly presenting the product's different usage scenarios and features. An information area and a QR code module are set at the bottom of the page. The overall layout is spacious and well-spaced, fitting the reference direction in the tutorial for using AI to create a beautiful official website.This is a long-screen preview screenshot of a website called Asky. It adopts an overall minimalist, fresh, and lightweight design style, with a soft light gradient blur effect in the background. From top to bottom, the page arranges multiple visual modules: a window device schematic with content is shown at the top, a scene image of a person using an electronic device and related feature description text are interspersed in the middle, multiple feature introduction cards in low-saturation macaron colors are arranged below, and the site identifier "Asky one key away" is marked at the bottom of the page. This screenshot visually presents the beautiful design effect of this AI-generated official website, used to contrast with the poor results produced when directly giving a vague website-building instruction to an AI model.This image shows an official website page in a dark minimalist style. At the top of the page is the text "Common controls, one touch away," and above it is an embedded computer screen window displaying a software interface with related function options. The middle of the page sequentially arranges content areas such as feature modules, operation guidance, and tool recommendations. Below is also a product display module showing real photos of devices such as laptops and headphones, with related links and operation entries at the bottom. The overall layout is clear and the style is consistent. As a case study, this page visually presents the style of an official website that meets aesthetic requirements, echoing the related content introduced in the document about AI generating beautiful official websites.

If you're interested in the websites, some animation effects mean the screenshots also lose some of the effect. If you're interested, you can directly check out the corresponding websites:

Actually, if you just throw a single line at the model like "help me write a more high-end official website," even Gemini is pretty unbearable right now. To build a website with real texture through Vibe Coding, it still requires a lot of human involvement—just as I replied to many people yesterday, it's not as complicated or advanced as you think; it's quite plain. Building a beautiful official website from zero to one basically won't let AI do everything in one go. It requires people to split up and control the four stages: starting point, skeleton, visuals, and copywriting, rather than relying on some so-called design skill. So far I haven't seen any so-called Design skill be of any use, and I don't recommend using Design skills to generate websites—the results are all very poor, and they make your generation slower and more expensive.

Getting Started with Design

Before writing any front-end code, the most important thing is to first lock down the overall visual direction. Depending on your level of mastery with design tools, there are three different starting paths here.

Getting Started with Figma

If you are familiar with Figma Have a basic understanding—even if it's just knowing how to create frames and adjust colors—and it's recommended to use Figma as the central bridge for the entire workflow.

Of course, this doesn't mean you should draw out the entire page pixel by pixel in Figma—that would lose the efficiency advantage of Vibe Coding. You only need to set up basic variables (primary colors, font hierarchy, corner radius standards) and prototypes of a few core components so that AI can read and understand your design intent. You have many options for this step: you can use a coding agent to connect directly to Figma MCP; if you're a paid user or have an education discount, you can also use Figma agent to do it.

Using Figma agent, you can complete all the work in just a few minutes

Once these prerequisites are ready, use Figma agent or your coding agent—for example, I use Antigravity paired with Gemini 4 neon via Figma MCP—to have AI generate a design draft based on these basic standards. You can provide some references here; generally, just giving a link to a corresponding website is enough, and AI will check it itself. However, I think you can add: "Check the webpage's HTML structure tree and style code," for example:

Plain text
参考{这里插入参考网站链接},读取它的 HTML 结构以及 CSS 样式代码,帮我在 Figma 绘制一个{官网名称}网站,Figma 链接是{Figma 链接},使用 Figma 文件中的变量、样式和组件
No need for a Figma design file with structure and styles
Design file produced using prompts that specify structure and styles

As shown above, you can probably feel a kind of change. Although neither looks great, at least the one on the right looks like the structure and color scheme a real website should have. I call the effect achieved at this step "atmosphere passing, visuals lacking"—basically, no matter what kind of website you give it, it will give you back a website with roughly the same basic styles. But if you can spend a little time to get it started, the result can be much better, just like the comparison in the image below.

Figma design file produced after I drew the visual effect for the hero section
Design file output with nothing drawn

The difference is clearly noticeable—the image on the right even has information deviations (such as extra paid information appearing for an open-source software). This also shows that if there is sufficiently detailed reference, AI can produce something around a passing level. But from several rounds of testing, it is not hard to see that Gemini's layout structure for this kind of webpage tends to be rigid: it uses black-and-white color schemes by default and is very fond of using large cards for CTAs and other areas. But this does not matter at all—it has already locked down the entire website's color system and visual tone for you, and when it is later converted directly into frontend pages via MCP, the result will be much better than writing blindly.

Starting directly with code

If you don't know how to use Figma at all, or if you're after even faster efficiency, you can also start directly with Web Coding.

This is much the same as starting with Figma; the core of the first step is still finding references. One small point to add here: previously, many people tended to first have AI generate a detailed design.md design specification document, or dump a dozen reference websites to the AI all at once, but in the zero-to-one stage, my advice is exactly the opposite: give up design.mdYou also only need to find one reference website.

Start with a component library

In addition, there is another way to get started: on the basis of having a reference, directly find an existing visual component library to implement it, such as the following:

Website

Link

BeUI

https://beui.dev/

Watermelon

https://ui.watermelon.sh/

CossUI

https://coss.com/ui

Mantine

https://ui.mantine.dev/#main

Using these component libraries lets you first secure a baseline for the overall visual quality; the only caveat is that the visual style may not be fully customizable.

Section summary

At this stage, the purpose of finding references is to directly extract its underlying style tone and determine the styles, variables, and overall vibe of the website. For example, if you plan to do a dark theme, find a dark website with solid quality, such as Raycast、Linear、Framer and the like; extract its background color values and the brightness hierarchy of cards, then make slight adjustments in combination with your own product. Even if the initial front-end page that Gemini directly spits out based on this tone looks rough, do not get stuck on local styles for now. As long as the overall color direction is right, you can directly move on to the next stage.

By the way, if you have a collection tool like Eagle, you can usually collect some websites of different styles so that it is convenient to provide references to AI at this time. If you don't have Eagle, you can also first use the GPT image model or the like to generate a UI screenshot page that satisfies you, and then use it as a reference.

Some references I saved

Skeleton tuning

Whether it is a page restored through Figma MCP or the initial code generated directly, next you will enter a rather monotonous process that tests your patience the most: style fine-tuning. Yes, at least for now this step absolutely cannot be bypassed, so I made it clear at the beginning that there really is no high technology here; it is simply that AI has improved efficiency.

However, there are still some methods that save time or can solve quite a few problems for Builders outside the design industry, and I will cover them all here.

Use some Block component libraries

This has been quite popular since late last year—modular component libraries such as 21st, ShadcnBlocks, and so on. I'll recommend a few here; some of them are paid, and you can choose to share a subscription ("carpool") or find third-party sellers to buy them at a lower price.

Website

Pricing status

Link

21st

Free daily quota

https://21st.dev/

ShadcnBlocks

Paid

https://www.shadcnblocks.com/

MagicUI

Free, with some premium components paid

https://magicui.design/

Of course, there are many more components like these. I've only listed a few here. You can not only copy their code or use them directly, but also take a screenshot and give it to AI as a reference for implementation. However, for the sake of style consistency, I recommend adding the sentence "use our project's variable styles" when using them.

Adjusting with references and personal aesthetics

If you feel the effect of using components directly is still not ideal, you can also adjust them manually. Because I am a designer myself, I often directly tell AI in natural language what effect I want; for example, the image below is what I asked AI to draw: make the Tags in the Asky AI chat input box form a line of copy that connects downward to the scene below.

Modules described in natural language

At this step, I think you can trust Gemini's aesthetic sense—most of the time it will do a pretty good job. If it doesn't work the first time, you can try several more times. Even if your prompt is just "make it look more premium," for example with the hero section shown below, I wasn't satisfied at first. I only said it wasn't premium enough and lacked a sense of design, and Gemini produced the result shown below after 2 attempts.

Hero section effect generated by Gemini

For fine-tuning some details, I developed a Chrome extension myself, Design cursor, which is actually similar to the webpage annotation that almost all Coding agent tools now come with, and can help me make quick adjustments. You have many options for this part, and there is no need to use my Chrome plugin; there are also quite a few plugins with similar functionality, such asPai Da Xin's Chrome plugin Liaison.

Using Design cursor to make detailed layout adjustments

If you have no idea what many of these terms mean, you can take a look at Ian's Vibe coding design jargon website:Design Vocabulary — Topinspo.

Chapter Summary

This step takes a fair amount of time and does test your personal aesthetic to some degree, but the layout patterns of the vast majority of websites are quite similar: the hero section is usually just one of a few classic structures—a large centered image with a primary button, or text on the left with an image on the right—while the feature showcases in the middle are mostly bento-box cards or alternating text-and-image modules. If you don't need to stand out from the crowd at this stage and just want the site to look good, all you need to do is pick out the mature, easy-to-use modules from different websites and combine them in a reasonable reading rhythm, making sure the overall proportions are balanced, and the skeleton of your website won't go wrong.

Adding Visual Tension

This step will deliver an absolutely tremendous boost to your website's visual effect. For example, the effect shown below turns what might otherwise just be three cards of heading and text into something not only more interesting, but also visually very striking. I think visual tension can be explained from 2 angles: one part is visual assets such as images and videos, and the other part is animation and motion effects.

Using images to add visual tension

Adding assets such as images and videos

As for creating images and videos, you can also use AI tools: for images, you can use Codex, ChatGPT's Image 2.6 model, or Gemini's Nano Banana; for videos, you can use tools like Minimax H3 and Jimeng AI. If you can't generate them precisely, my suggestion is to hand it over to AI. For example, for the assets on my website, I had Antigravity write the prompts and gave them to Codex to generate the images. Taking the effect of the image above as an example, I usually describe it like this:

Plain text
 我需要在这些卡片之间做成分割线分割的不规则块面布局,里面穿插文字和图片,图片使用黑白色的图片,可以交给 Codex 来生成,图片需要边缘和背景融合

In addition, you can also have AI help you handle more texture effects in SVG and HTML. For example, for all the modules in the image below, I didn't even specify how to express them; Gemini completed them autonomously—texture, visuals; some are images, and some are effects written directly in HTML. However, I didn't get Gemini to complete these 30-plus visual effects all satisfactorily in one go; it took about 5-6 rounds of back-and-forth adjustments.

For videos, there are even more possibilities. For example, you can use the mouse to control the video's playback progress bar to achieve some magical effects, such as making a character swing its head left and right following the mouse. There are many possibilities here, and you can extend them yourself.

Adding motion effects

Motion effects can add a lot of detail and texture to your website, but you need to use them with restraint and caution, especially since many scenarios may also cause front-end performance issues. Personally, I divide motion effects into 3 types: element animations, interaction effects, and Shader background animations.

Element animations

These generally involve adding some animation effects to small elements, which can effectively enhance the texture.

For example, at the position below, I felt the tag lacked some texture, so I added a looping halo animation around its edge. This is a non-interactive animation; such animations are suitable for sparse use, only as embellishment. Do not overuse them—if you add too many, the website will become tacky.

The tag at the top has an edge glow animation added

Interaction effects

Another type is interaction effects, such as the most common hover animation. For example, in the image below, when the mouse hovers over a card, there is an effect where the border near the mouse brightens.

The borders of nearby cards highlight on mouse hover

Another common one is entrance animation. For example, I basically always add the most basic sequential fade-in animation on entrance. This animation puts almost no pressure on performance and also adds some texture.

Finally, the most common one is animation effects that follow the scroll wheel. For example, in the left image below, this collage text animation is completed by following the mouse's downward scrolling, not automatically. Another example is the card aggregation on the right, which is also achieved as the mouse scrolls.

Text collage effect
Card aggregation animation

There are also 2 more common scrolling effects that are very suitable for layouts with relatively repetitive content, such as alternating left-right text-image structures. These are parallax scrolling and pinned sticky scroll. The text color-change-following-scroll effect in the image above is actually a pinned sticky scroll. This effect is often seen in areas with text-image structures, replacing or stacking one by one. Parallax scrolling, on the other hand, follows scrolling and makes different elements scroll at different rates, creating a sense of depth and hierarchy. I use both of these effects in the positions shown in the image below, and to add a feeling of scrolling, I also added a scaling and color-changing effect similar to a cylindrical roller.

The website's scrolling effects

Shader backgrounds

This effect easily causes performance issues. I do not recommend using it in large quantities. Moreover, in my own testing, only the Gemini and Claude models actively optimize Shader performance; Codex's GPT model adds Shaders with no regard for performance at all, making the website extremely laggy. If you are interested in Shader effects, you can take a look at the websites I recommend below:

Website

Link

Radiant shaders

https://radiant-shaders.com/gallery/all

Reactbits

https://reactbits.dev/

21st

https://21st.dev/

Using shaders can significantly elevate the quality of your Hero section or some smaller modules, as shown in the image below.

Chapter Summary

Adding these visual assets and effects will noticeably improve the quality of your website; but this part still requires careful polishing. To improve quality, it is recommended to spend more time here, paying attention to whether module details are in place, for example:

  • Whether Tab or Segmented component switching has animation effects on both the content and the switch itself;

  • Whether the menu expands and closes smoothly;

  • Whether anchor jumps have a scrolling animation

These details seem small, but they are easily overlooked, and ultimately may cause the website to look less refined or even somewhat rough in actual presentation. In short, at this step, please be sure to do it carefully—not seeking refinement, but seeking comprehensiveness and attention to detail.

Eliminate the "AI feel" in your copy

Copywriting is an often overlooked part. Official website copy generated by AI by default often carries a strong "AI feel": either piling up empty, grandiose adjectives, or filled with cold code logic and stiff translationese. For high-quality official website copy, I suggest being a bit more refined. For example, when working on the Asky official website, I had Gemini optimize several versions of the copy to create the warm atmosphere of a desktop assistant.

Optimizing the website copy

This point is actually small, and even visually unimportant, but for a real webpage it is essential; otherwise, the page's immersion will be poor. Relatively speaking, Gemini is currently the model that best speaks"human language", so I think using Gemini to optimize copy is very effective.

Conclusion

When using AI for Vibe Coding to build an official website, it is not hard to see that what determines the upper limit is not how long or complex the prompt you write, but your aesthetic judgment and restraint at key nodes. The model can help you handle most of the execution work from zero to one, but it does not know what emotion your product should convey, and it is also hard for it to grasp the overall rhythm and 分寸 for you.

As creators, we do not need to fall into endless pixel-level OCD, nor do we need to insist on industrial-grade perfection in every corner. As long as you set the visual tone accurately at the start, assemble a comfortable skeleton with mature modules, support the quality with image generation and moderate scroll animations, and finally switch to copy that sounds like a real person speaking, the whole process is already up and running. When a website is comfortable to look at and natural to read, it has actually surpassed the vast majority of works on the market.

2 likes

You can like once today

How to Truly Vibe Code a Beautiful Official Website with AI

A polished AI-built website doesn't come from one prompt. Set the visual direction with references and Figma, assemble a clean skeleton from proven blocks, then add imagery, restrained motion and human-sounding copy; taste and restraint at key moments matter more than prompt length.