Vibe Coding · บทเรียน

จัดรูปแบบด้วยภาษาธรรมดา

อธิบายรูปลักษณ์ที่คุณต้องการ

บทเรียน 2 จาก 413 ขั้นตอน

จัดรูปแบบด้วยภาษาธรรมดา เป็นบทเรียน Vibe Coding ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Vibe Coding และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Vibe Coding มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Styling Without Code

Now your page has a skeleton, but it looks plain. Styling adds colors, spacing, and a nice feel.

The magic of vibe coding is that you describe the look in plain words. You say "calm and green", and the AI picks the colors and fonts for you.

Describe a Mood

Instead of naming exact hex codes, describe the feeling you want. Words like "fresh", "modern", "playful", or "professional" guide the AI.

A mood gives the AI room to choose matching colors and fonts that work well together.

Style the PlantPal landing page to feel fresh and friendly.
Use soft green tones, rounded corners, and a clean modern font.

Pick a Color Theme

If you have a color in mind, just name it. "Green", "navy blue", or "warm orange" all work.

You can also ask for a main color plus an accent color for buttons. The AI keeps the rest neutral so your page stays readable.

Use a green and white color theme.
Make the buttons a slightly darker green so they stand out.
Keep the text dark gray for easy reading.

Style the Hero

The hero is the first thing people see, so it deserves attention. Ask for a large, bold headline and plenty of breathing room around it.

You can request a soft background color or a gentle gradient to make the top of the page inviting.

Make the hero section stand out.
Use a large bold headline, generous spacing, and a soft light-green background behind it.

Make Buttons Inviting

Your call-to-action button should be easy to spot and pleasant to click. Ask the AI to give it a clear color and a little hover effect.

A button that gently changes when the mouse moves over it feels alive and modern.

Style the "Get Started" button.
Make it green with white text, rounded corners, and a slightly darker shade when I hover over it.

Spacing and Breathing Room

Crowded pages feel stressful. Good spacing makes a page feel calm and easy to read.

You can ask the AI for more padding around sections and space between lines of text. "Give it room to breathe" is a phrase the AI understands well.

Add more space between the sections and around the text.
Give the page room to breathe so it does not feel crowded.

Fonts and Readability

Fonts shape the personality of a page. A clean sans-serif font feels modern; a serif font feels classic.

You do not need font names. Just say "easy to read" or "modern", and ask for headings a bit larger than body text.

Use a clean, modern, easy-to-read font.
Make the headings noticeably larger and bolder than the normal text.

One Change at a Time

When styling, change one thing per message. This makes it easy to see what each change does.

If you ask for ten changes at once and dislike the result, it is hard to know which part to undo. Small steps keep you in control.

Keep It Consistent

A good landing page uses the same colors and spacing everywhere. Mismatched styles look unfinished.

You can ask the AI to apply your theme across the whole page so every section matches the hero.

Apply the same green theme and spacing to every section.
Make sure all buttons and headings look consistent across the page.

Undoing a Style You Dislike

Not every result will please you, and that is fine. Just tell the AI what feels wrong and what you would prefer instead.

You can say "too dark" or "the button is too small". The AI adjusts without losing the rest of your work.

The background is too dark and hard to read.
Make it lighter and keep the green accents on the buttons only.

A Page With Personality

With a few plain-language requests, your plain skeleton now has a clear style: a theme color, comfortable spacing, readable fonts, and an inviting button.

Remember, you described feelings and let the AI handle the technical color and font choices.

Give the whole PlantPal page a fresh, calm, modern style.
Green and white theme, roomy spacing, readable font, and a friendly rounded button.

Quick Check

Let's review styling by plain language.

Recap: Plain-Language Styling

You learned to style by describing a mood and theme instead of writing code. You styled the hero, made an inviting button, added breathing room, and kept everything consistent.

You also saw how to undo a look you dislike. Next, you will fill the page with real sections and content.

เริ่มต้นได้ฟรี

เรียนรู้ JavaScript ด้วย AI tutor — ฟรี

เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป

คอร์ส
25
บทเรียน
100

คำถามที่พบบ่อย

บทเรียน “จัดรูปแบบด้วยภาษาธรรมดา” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “จัดรูปแบบด้วยภาษาธรรมดา” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Vibe Coding ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Vibe Coding มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “จัดรูปแบบด้วยภาษาธรรมดา”

อธิบายรูปลักษณ์ที่คุณต้องการ คุณปฏิบัติ Vibe Coding ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Vibe Coding หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Vibe Coding บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “จัดรูปแบบด้วยภาษาธรรมดา” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Vibe Coding นี้ได้ไหม

ได้ บทเรียน Vibe Coding ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. วางโครงหน้า
  2. จัดรูปแบบด้วยภาษาธรรมดา
  3. เพิ่มส่วนและเนื้อหา
  4. ดูตัวอย่างและปรับแต่ง
← กลับไปที่ Vibe Coding