Responsive Design

作者 wshobson46891e7e60da無授權條款收錄於 2026年10月8日更新於 2026年10月8日

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.

AI 產生的概覽

指導使用容器查詢、流體排版、CSS Grid 與斷點策略實作響應式網頁版面。

功能
此技能為建構自適應網頁介面提供指引,涵蓋行動優先斷點策略、容器查詢、流體排版與間距、CSS Grid 與 Flexbox 版面、響應式圖片與媒體、自適應導覽,以及響應式表格。它列出最佳實務與常見問題,例如水平溢出、固定寬度、視窗高度問題與觸控目標尺寸。詳細的模式文件放在參考檔案中,當摘要不足時由代理讀取。
適用情境
適用於實作行動優先響應式版面、以容器查詢達成元件層級響應、建立流體字級與間距系統,或為設計系統擬定斷點策略。也適合響應式圖片、自適應導覽與響應式資料呈現。
執行需求
不需要指令碼或特殊工具,僅包含指示與參考用 Markdown 檔案。前提是代理正在處理前端 CSS/HTML 版面程式碼。

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

來源與署名

來源:wshobson/agents位於plugins/ui-design/skills/responsive-design提交46891e7

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架