0Pricing
Vibe Coding · 课时

用文字描述用户界面

将外观和体验转化为提示词

用文字描述用户界面 是 CoddyKit 上的免费 Vibe Coding 课时。 这是第 1 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Vibe Coding 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Vibe Coding 课程共包含 4 节课。

本课时的部分内容尚未翻译,以英文显示。

Your Words Are the Design Tool

Welcome to Designing UIs by Prompt. Here's the magic of vibe coding: you don't need to be a designer or learn complex software like Figma to get a beautiful interface. You describe the look and feel in plain English, and tools like v0 and Lovable generate a real, working UI.

In this lesson you'll learn how to turn a vague idea in your head ("a clean, modern landing page") into a precise prompt that AI can actually build.

The Anatomy of a UI Prompt

A great UI prompt usually answers four questions: What is it (a page, a card, a form)? Who is it for? What vibe should it have? And what content goes in it?

Vague prompts get vague results. Specific prompts get the design you imagined. Compare the two example prompts below.

VAGUE:
"Make me a landing page."

SPECIFIC:
"Create a landing page for a meditation app called Calmly.
Audience: stressed professionals. Vibe: soft, calming, minimal.
Include a hero with a headline, subheadline, and a 'Start free trial'
button, followed by a 3-column features section."

Naming the Vibe

The single most powerful word in a UI prompt is the adjective. Words like minimal, playful, brutalist, elegant, retro, corporate, futuristic instantly steer the entire design.

Don't just say "nice" — that means nothing to an AI. Pick 2-3 concrete vibe words and stack them. Tools like v0 and Lovable respond strongly to this.

"Design a pricing page with a clean, modern, slightly playful vibe.
Think Notion meets Duolingo: lots of whitespace, rounded corners,
friendly sans-serif font, and one bright accent color."

Borrowing Reference Vibes

A pro trick: reference apps and brands the AI already knows. Saying "like Stripe" or "like Airbnb" packs a thousand design decisions into two words.

This works because models like the ones behind v0 and Lovable have seen these well-known designs. Use them as shortcuts, then customize.

"Build a dashboard with a layout and feel similar to Linear:
dark theme, crisp typography, subtle borders, dense but calm.
Replace their content with stats for a fitness tracking app."

Describing Layout in Words

Beyond vibe, you can describe structure. Use spatial words the AI understands: top, hero, two-column, grid, sidebar, sticky header, footer.

Think of it like sketching with sentences. Walk top to bottom through the page.

"Page structure top to bottom:
1. Sticky navbar with logo on the left, 3 links and a button on the right.
2. Full-width hero: big headline, short paragraph, two buttons.
3. A 3-column grid of feature cards with icons.
4. A centered testimonial section.
5. A footer with 4 columns of links."

Color and Typography Cues

You can hand the AI a color direction without picking exact hex codes. Say things like "warm earthy tones" or "a deep blue primary with a coral accent."

For fonts, describe the feeling: "a friendly rounded sans-serif" or "a serious serif for a law firm." You'll fine-tune exact values later — for now, set the mood.

"Color palette: a deep navy background, off-white text,
and a single vibrant teal accent for buttons and links.
Typography: a clean geometric sans-serif, large and confident headings."

Show, Don't Just Tell

Most modern UI tools (v0, Lovable, Bolt) let you upload a screenshot or sketch. A picture removes ambiguity instantly.

Even a rough phone photo of a napkin sketch works. Pair the image with words: "Build this layout, but make it modern and use my brand colors." This is the fastest way to get exactly what you pictured.

"[image attached: hand sketch of a profile page]
Recreate this layout as a polished React component.
Keep the structure but make it look premium and modern."

A Tiny Bit of HTML

Under the hood, the AI is writing real HTML. You don't have to read it, but recognizing the shape helps you describe what you want. A 'hero' section is often just a heading and a button inside a container.

Here's the kind of simple markup a UI prompt produces.

<section class="hero">
  <h1>Find calm in 5 minutes a day</h1>
  <p>Guided meditations for busy people.</p>
  <button>Start free trial</button>
</section>

Iterate, Don't Restart

Your first generated screen is a starting point, not the final answer. The real skill is refining with follow-up prompts: "make the hero taller," "swap the button to the right," "more whitespace."

Treat it like a conversation with a designer. Small, specific nudges beat re-describing the whole page from scratch.

Follow-up prompts after the first generation:

"The headline is too small — make it about twice as large."
"Add more breathing room between the feature cards."
"Change the accent color from blue to a warm orange."

A Reusable Prompt Template

Keep a fill-in-the-blank template handy so you never stare at a blank box. Combine purpose, audience, vibe, structure, and colors into one block and let the tool do the rest.

"Create a [page type] for [product], a [one-line description].
Audience: [who]. Vibe: [2-3 adjectives], similar to [reference app].
Structure (top to bottom): [list sections].
Colors: [palette]. Fonts: [feel].
Make it responsive and use placeholder content where needed."

Try It in a Real Tool

Open v0.dev or Lovable, paste a filled-in template, and watch a real UI appear in seconds. Then practice the iteration loop: generate, look, nudge, repeat.

The more concrete your words, the less you'll have to fix afterward. This single skill — describing UIs precisely — powers everything in this course.

"Create a landing page for TrailMate, an app that finds nearby hiking
trails. Audience: weekend adventurers. Vibe: outdoorsy, fresh, friendly,
similar to Airbnb. Structure: navbar, hero with search bar, 3-column
trail cards, a map section, and a footer. Colors: forest green and warm
sand. Make it responsive."

Quick Check

Which prompt is most likely to produce the UI you imagined?

Recap: You Designed With Words

You learned to turn a fuzzy look-and-feel into a precise prompt. The recipe: state what it is and who it's for, name a concrete vibe (with reference apps as shortcuts), describe the layout top to bottom, hint at colors and fonts, and optionally attach a sketch.

Then you iterate with small follow-up nudges instead of restarting. Next up: generating individual components like buttons, cards, and forms on demand.

常见问题解答

「用文字描述用户界面」课时是免费的吗?

是的 — 「用文字描述用户界面」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Vibe Coding 课程的其余内容,请升级到 CoddyKit PRO。 Vibe Coding 课程共包含 4 节课。

「用文字描述用户界面」这节课中我会学到什么?

将外观和体验转化为提示词 你通过在浏览器中直接运行的动手代码来练习 Vibe Coding,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 Vibe Coding 需要有经验吗?

无需任何先前经验。CoddyKit 上的 Vibe Coding 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 1 节课,共 4 节。

「用文字描述用户界面」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 Vibe Coding 课中编写并运行代码吗?

能。每节 Vibe Coding 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 用文字描述用户界面
  2. 生成组件
  3. 样式与主题
  4. 实现响应式布局
← 返回 Vibe Coding