frontend-responsive

mshafei721 的头像作者 mshafei721

使用流体网格、标准断点、相关单位和触摸友好设计构建移动优先、响应式布局。创建或修改需要在不同屏幕尺寸上工作的布局时,请使用此技能。当处理响应式样式、断点定义、媒体查询或移动/平板电脑/桌面布局时。当使用基于百分比的宽度、rem/em 单位或视口单位时。当确保触摸目标尺寸适当时,排版在所有尺寸下都可读,或者优先考虑移动屏幕的内容。

📖 中文导读:使用流体网格、标准断点、相关单位和触摸友好设计构建移动优先、响应式布局。创建或修改需要在不同屏幕尺寸上工作的布局时,请使用此技能。当处理响应式样式、断点定义、媒体查询或移动/平板电脑/桌面布局时。当使用基于百分比的宽度、rem/em 单位或视口单位时。当确保触摸目标尺寸适当时,排版在所有尺寸下都可读,或者优先考虑移动屏幕的内容。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Frontend Responsive description: Build mobile-first, responsive layouts with fluid grids, standard breakpoints, relative units, and touch-friendly design. Use this skill when creating or modifying layouts that need to work across different screen sizes. When working on responsive styles, breakpoint definitions, media queries, or mobile/tablet/desktop layouts. When using percentage-based widths, rem/em units, or viewport units. When ensuring touch targets are appropriately sized, typography is readable at all sizes, or content is prioritized for mobile screens.

When to use this skill:

  • When creating layouts that need to work on mobile, tablet, and desktop
  • When adding responsive breakpoints or media queries
  • When working on mobile-first CSS development
  • When using percentage-based or fluid widths
  • When choosing between px, rem, em, or viewport units
  • When sizing touch targets for mobile users (minimum 44x44px)
  • When adjusting typography for readability across screen sizes
  • When prioritizing content visibility on smaller screens
  • When testing UI across different device sizes
  • When optimizing images and assets for mobile performance
  • When implementing standard breakpoints consistently
  • When reviewing layouts for responsive behavior

Frontend Responsive

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend responsive.

Instructions

For details, refer to the information provided in this file: frontend responsive