frontend-responsive

coreyja 的头像作者 coreyja

使用移动优先开发、流体布局和相对单位构建在移动设备、平板电脑和桌面屏幕尺寸上无缝工作的响应式布局。在实现需要适应不同屏幕尺寸的布局或UI组件时使用此技能。在设置断点、媒体查询或响应式工具时。使用相对单位(rem, em, %)而不是固定像素时。确保触摸友好的点击目标并优化移动性能时。在多个设备尺寸上测试UI更改时。实现响应式排版、图像或导航模式时。

📖 中文导读:使用移动优先开发、流体布局和相对单位构建在移动设备、平板电脑和桌面屏幕尺寸上无缝工作的响应式布局。在实现需要适应不同屏幕尺寸的布局或UI组件时使用此技能。在设置断点、媒体查询或响应式工具时。使用相对单位(rem, em, %)而不是固定像素时。确保触摸友好的点击目标并优化移动性能时。在多个设备尺寸上测试UI更改时。实现响应式排版、图像或导航模式时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Frontend Responsive description: Build responsive layouts that work seamlessly across mobile, tablet, and desktop screen sizes using mobile-first development, fluid layouts, and relative units. Use this skill when implementing layouts or UI components that need to adapt to different screen sizes. When setting up breakpoints, media queries, or responsive utilities. When using relative units (rem, em, %) instead of fixed pixels. When ensuring touch-friendly tap targets and optimizing for mobile performance. When testing UI changes across multiple device sizes. When implementing responsive typography, images, or navigation patterns.

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.

When to use this skill

  • When implementing layouts or UI components that adapt to different screen sizes
  • When setting up breakpoints for mobile, tablet, and desktop views
  • When writing media queries or using responsive utility classes
  • When using relative units (rem, em, %) instead of fixed pixel values
  • When ensuring tap targets are appropriately sized (minimum 44x44px) for mobile
  • When optimizing images and assets for mobile network conditions
  • When implementing responsive typography that remains readable on all screens
  • When testing UI changes across mobile, tablet, and desktop screen sizes
  • When building mobile-first layouts that progressively enhance for larger screens
  • When implementing responsive navigation patterns (hamburger menus, collapsible sections)

Instructions

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