ODT lightweight

คู่มือสไตล์

ชุดสี (Color Palette)

สีแบรนด์หลักและรอง คลิกที่สีเพื่อคัดลอกค่า HEX

สีหลัก (Primary)

50
100
200
300
400
500
600
700
800
900

สีรอง (Secondary)

50
100
200
300
400
500
600
700
800
900

สีพื้น (Neutral)

50
100
200
300
400
500
600
700
800
900
950

สีสื่อความหมาย (Semantic)

Success
Warning
Danger
Info

การไล่สี (Gradients)

การไล่สีแบบเส้นตรงที่ใช้กับพื้นผิวต่างๆ

from-primary-50

via-primary-0 via-60%

to-secondary-50

from-primary-50

to-white

from-secondary-50

to-white

from-primary-200

via-primary-50 via-60%

to-secondary-100

Primary Background

from-primary-50 via-primary-50 via-60% to-secondary-50

Gradient

from-primary-200 via-primary-50 via-50% to-secondary-100

ข้อความและตัวอักษร (Text & Typography)

สีที่ใช้สำหรับข้อความและไอคอน

text-fg-strong — Strong heading

text-fg — Default body text

text-fg-muted — Secondary / muted text

text-fg-subtle — Metadata / helper text

text-fg-disabled — Disabled text


text-fg-primary — Brand accent

text-fg-primary — Brand accent

text-fg-success

text-fg-warning

text-fg-danger

text-fg-info

text-fg-inverse-strong

text-fg-inverse

text-fg-inverse-muted

text-fg-inverse-subtle

text-fg-inverse-disabled

ลำดับชั้นของเนื้อหา (Content Hierarchy)

ตัวอย่างการประกอบข้อความในการ์ดเนื้อหา

Updated 2 hours ago

Design System Release

Core tokens have been updated across all surfaces.

Secondary context and supporting details.

12 min read · By design team
Updated 2 hours ago

Design System Release

Core tokens have been updated across all surfaces.

Secondary context and supporting details.

12 min read · By design team

พื้นผิว (Surfaces)

สไตล์พื้นผิวและคอนเทนเนอร์ทั่วไป

Elevated

bg-surface / shadow-card

Flat

bg-surface

Elevated multed

from-primary-50 to-white

Flat multed

>bg-surface

Elevated Subtle

bg-surface-subtle / shadow-card

Flat Subtle

bg-surface-subtle

Gradient Primary

from-primary-50 to-white

Gradient Secondary

from-secondary-50 to-white (to-br)

พื้นผิวบนพื้นผิวแบบ Muted

สไตล์พื้นผิวและคอนเทนเนอร์ทั่วไป

Elevated

bg-surface / shadow-card

Flat

bg-surface

Elevated multed

from-primary-50 to-white

Flat multed

>bg-surface

Elevated Subtle

bg-surface-subtle / shadow-card

Flat Subtle

bg-surface-subtle

Gradient Primary

from-primary-50 to-white

Gradient Secondary

from-secondary-50 to-white (to-br)

พื้นผิวบนพื้นหลังแบบไล่สี

คอนเทนเนอร์ที่วางบนพื้นหลังแบบไล่สี

Elevated

bg-surface / shadow-card

Flat

bg-surface

Elevated multed

from-primary-50 to-white

Flat multed

>bg-surface

Elevated Subtle

bg-surface-subtle / shadow-card

Flat Subtle

bg-surface-subtle

Gradient Primary

from-primary-50 to-white

Gradient Secondary

from-secondary-50 to-white (to-br)

พื้นผิวแบบกระจกฝ้า (Frosted Surfaces)

Surface tokens with translucency and backdrop blur.

Elevated

Elevated glass surface for primary content.

Flat

Lightweight glass surface with minimal emphasis.

Elevated Muted

Elevated muted surface for secondary content.

Flat Muted

Muted surface for supporting information.

Elevated Subtle

Elevated subtle surface for low-emphasis content.

Flat Subtle

Subtle surface for background groupings.

Gradient Primary

Frosted gradient surface with primary accents.

Gradient Secondary

Frosted gradient surface with secondary accents.

สีสื่อความหมาย (Semantic Colors)

สีสำหรับสถานะและการตอบกลับ

Success

bg-surface-success

Warning

bg-surface-warning

Danger

bg-surface-danger

Info

bg-surface-info

ความโค้ง (Radius)

ความโค้งของขอบจากเหลี่ยมไปจนถึงกลม

xs
sm
md
lg
xl
2xl
3xl
4xl
full

ปุ่ม (Buttons)

ปุ่มแบบทึบ กระจก แคปซูล โปร่งใส และขนาดต่างๆ

Filled

Frosted

Capsule

Ghost

ขนาดข้อความ (Text Sizes)

ขนาดของหัวข้อและเนื้อหา

text-5xl (Heading 1)

The quick brown fox

text-4xl (Heading 2)

The quick brown fox

text-3xl (Heading 3)

The quick brown fox

text-2xl (Heading 4)

The quick brown fox

text-xl (Heading 5)
The quick brown fox
text-lg (Large Body)

The quick brown fox jumps over the lazy dog.

text-base (Default Body)

The quick brown fox jumps over the lazy dog.

text-sm (Small text)

The quick brown fox jumps over the lazy dog.

text-xs (Extra Small)

The quick brown fox jumps over the lazy dog.

ระยะห่าง (Spacing)

ระยะห่างมาตรฐานสำหรับเค้าโครงและคอมโพเนนต์

1 (4px)
2 (8px)
3 (12px)
4 (16px)
6 (24px)
8 (32px)
12 (48px)
16 (64px)

ตัวอย่างคอมโพเนนต์ (Component Examples)

การ์ดเนื้อหาแบบต่างๆ ที่มีการใช้ระยะห่างและขนาดตัวอักษร

ประชุมงานออกแบบ (Design Sync)

Oct 12, 10:00 AM - 11:00 AM

กำลังจะมาถึง
หารือเกี่ยวกับ Component Library ใหม่และตรวจสอบ Mockups ล่าสุด
JD

John Doe

นักออกแบบ

john.doe@example.com

ยอดจองทั้งหมด

1,284 +12% สัปดาห์นี้

แพ็กเกจ Pro

$29/mo

ทุกสิ่งที่คุณต้องการเพื่อจัดการทีมของคุณ

  • โปรเจกต์ไม่จำกัด
  • การทำงานร่วมกันเป็นทีม
  • แดชบอร์ดการวิเคราะห์

การแจ้งเตือน

จัดการวิธีที่คุณรับการแจ้งเตือน

แจ้งเตือนผ่านอีเมล

รับการอัปเดตผ่านอีเมล

แจ้งเตือนแบบ Push

แจ้งเตือนบนอุปกรณ์มือถือของคุณ

เชิญสมาชิกทีม

ส่งคำเชิญเพื่อเข้าร่วมพื้นที่ทำงานของคุณ

กฎการออกแบบ (Do's & Don'ts)

แนวทางสำหรับเงา ระยะห่าง และสี

1. เงา (Shadows)

ไม่ควร (Don't)

เงาที่เข้มและแคบเกินไปจะดูไม่เป็นธรรมชาติและหนักทึบ

เงาที่ไม่ถูกต้อง
ควร (Do)

เงาที่นุ่มนวล กระจายตัว และทอดลงด้านล่าง (เช่น เงาบนการ์ด) ให้ความรู้สึกที่ดูมีมิติมากขึ้น

เงาที่ถูกต้อง

2. ระยะห่างในการ์ด (Spacing Inside Cards)

ไม่ควร (Don't)

ระยะห่างที่แน่นเกินไปหรือไม่สม่ำเสมอทำให้เนื้อหาอ่านยาก

หัวข้อ

คำอธิบายย่อยอยู่ติดกันเกินไป

เนื้อหาเบียดแน่นเกินไป
ควร (Do)

การใช้ Padding ที่กว้างขวาง สม่ำเสมอ (เช่น p-6) และช่องว่างที่ชัดเจน (gap-4)

หัวข้อ

แบ่งสัดส่วนชัดเจน

เนื้อหาดูโปร่งและอ่านง่าย

3. ความเปรียบต่างของสี (Color Contrast)

ไม่ควร (Don't)

ข้อความที่มีความเปรียบต่างต่ำบนพื้นหลังจะทำให้อ่านยาก

Contrast ไม่ดี
ควร (Do)

ตรวจสอบให้แน่ใจว่ามีความเปรียบต่างสูง (เช่น ข้อความสีเข้มบนพื้นหลังสีสว่าง)

Contrast ดี

4. ลำดับชั้นของตัวอักษร (Typography)

ไม่ควร (Don't)

Using the same font size/weight for titles and body creates a flat structure.

หัวข้อบทความ

This is the description of the article which looks exactly like the title.

ควร (Do)

Use font sizes and weights (e.g. bold vs normal) to separate content clearly.

หัวข้อบทความ

This is the description of the article which is visually distinct.

5. การเน้นปุ่ม (Button Emphasis)

ไม่ควร (Don't)

Using two primary buttons side-by-side confuses the user on what to do.

ควร (Do)

Use primary for the main action and ghost/secondary for secondary actions.

6. การเลื่อนแนวนอน (Horizontal Scroll Overflow)

ไม่ควร (Don't)

Adding padding inside a scroll wrapper cuts off items abruptly during scroll.

1
2
3
4
ควร (Do)

Apply padding inside the scrolling area (e.g. px-4) so items bleed to the edge.

1
2
3
4

7. การใช้สีเข้มมากเกินไป (Excessive Intense Colors)

ไม่ควร (Don't)

Overusing intense colors (primary-900, secondary-900) makes the UI heavy and overwhelming.

การ์ดที่ดูหนัก

Everything in this card screams for attention, tiring the user's eyes.

ควร (Do)

Use intense colors sparingly as accents or interactive elements on lighter surfaces.

การ์ดที่สมดุล

The content is easy to read, with the primary color used only to guide action.