Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)41k · #6807

responsive-design

Skill này làm gì

Skill này giúp tạo website và ứng dụng tự động điều chỉnh theo mọi kích thước màn hình, dù là điện thoại, máy tính bảng hay máy tính. Nó đảm bảo mọi thứ trông đẹp và hoạt động tốt trên mọi thiết bị.

Khi nào nên dùng

  • ✓Khi xây dựng website cần hoạt động tốt trên điện thoại và máy tính.
  • ✓Khi bạn muốn các phần cụ thể của trang tự điều chỉnh riêng.
  • ✓Để chữ và khoảng cách trông cân đối trên mọi kích thước màn hình.

Liên kết skill

https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/responsive-design/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/responsive-design/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để website của tôi thích ứng với các kích thước màn hình khác nhau?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng các kỹ thuật hiện đại để các phần tử trên màn hình tự sắp xếp và đổi kích thước theo không gian có sẵn. Nó bắt đầu từ thiết kế cho điện thoại rồi thích nghi cho màn hình lớn hơn, đảm bảo trải nghiệm tốt ở mọi nơi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Responsive Design

Master modern responsive design techniques to create interfaces that adapt seamlessly across all screen sizes and device contexts.

When to Use This Skill

  • Implementing mobile-first responsive layouts
  • Using container queries for component-based responsiveness
  • Creating fluid typography and spacing scales
  • Building complex layouts with CSS Grid and Flexbox
  • Designing breakpoint strategies for design systems
  • Implementing responsive images and media
  • Creating adaptive navigation patterns
  • Building responsive tables and data displays

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Mobile-First: Start with mobile styles, enhance for larger screens
  2. Content Breakpoints: Set breakpoints based on content, not devices
  3. Fluid Over Fixed: Use fluid values for typography and spacing
  4. Container Queries: Use for component-level responsiveness
  5. Test Real Devices: Simulators don't catch all issues
  6. Performance: Optimize images, lazy load off-screen content
  7. Touch Targets: Maintain 44x44px minimum on mobile
  8. Logical Properties: Use inline/block for internationalization

Common Issues

  • Horizontal Overflow: Content breaking out of viewport
  • Fixed Widths: Using px instead of relative units
  • Viewport Height: 100vh issues on mobile browsers
  • Font Size: Text too small on mobile
  • Touch Targets: Buttons too small to tap accurately
  • Aspect Ratio: Images squishing or stretching
  • Z-Index Stacking: Overlays breaking on different screens
Câu hỏi thường gặp

“Mobile-first” nghĩa là gì?

Nghĩa là bắt đầu thiết kế bằng cách nghĩ xem nó sẽ trông thế nào trên màn hình điện thoại nhỏ nhất, rồi thêm cải tiến cho màn hình lớn hơn.

“Container queries” là gì?

Đó là các quy tắc giúp một thành phần (một phần của trang) tự điều chỉnh theo kích thước không gian mà nó nằm trong, thay vì theo toàn bộ kích thước màn hình.

Vì sao cần kiểm tra trên thiết bị thật?

Trình giả lập có thể không cho thấy hết mọi vấn đề. Kiểm tra trên điện thoại và máy tính bảng thật đảm bảo website hoạt động hoàn hảo với mọi người dùng.

Chi tiết

Mô tả gốc của tác giả

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

repo: wshobson/agents

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6807
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự