返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Frontend Responsive

使用流式布局、相对单位、响应式图片和适合触摸的界面实现移动优先的响应式设计。在创建适应不同屏幕尺寸的布局、实现断点或针对移动和平板设备进行优化时,使用此技能。在处理响应式组件布局时,可以使用Tailwind的响应式实用程序类(sm:、md:、lg:、xl:)、CSS媒体查询和断点、带有clamp()或视口单位的流体排版、带有srcset和sizes属性的响应式图片、移动导航菜单和汉堡包模式、为移动设备设置触摸目标大小、响应式网格和Flexbox布局、基于组件的容器查询,或视口元标签和移动优化。

person作者: jakexiaohubgithub

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 mobile-first layouts that scale up to larger screens
  • When using Tailwind responsive utility classes (sm:, md:, lg:, xl:, 2xl:)
  • When writing CSS media queries with min-width breakpoints
  • When implementing responsive typography using clamp(), rem, or viewport units
  • When using Astro's Image component with responsive srcset and sizes
  • When creating mobile navigation menus with toggle/hamburger patterns
  • When ensuring touch targets meet minimum size requirements (44x44px)
  • When building responsive grids using CSS Grid auto-fit or Flexbox wrapping
  • When implementing container queries for component-based responsiveness
  • When optimizing images and assets for different screen sizes and resolutions
  • When testing layouts across mobile, tablet, and desktop breakpoints

Instructions

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