--- frontmattername: Frontend Responsive
description: Implement responsive design using mobile-first development approach with standard Tailwind breakpoints (sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px), fluid layouts, and proper testing across device sizes. Use this skill when creating layouts, implementing responsive navigation, sizing images and media, defining typography that scales across devices, working with CSS breakpoints, or testing UI components on different screen sizes. Apply when working on any component that renders visual UI (*.tsx, *.jsx), layout components, grid systems, or responsive styling code. This skill ensures mobile-first CSS development (default styles for mobile, then sm:, md:, lg:, xl: for larger screens), consistent breakpoint usage across the application, fluid layouts with percentage-based widths and flexible containers, relative units (rem/em) over fixed pixels for better scalability, touch-friendly tap targets (minimum 44x44px), optimized images and assets for mobile networks, readable typography across all breakpoints without requiring zoom, content prioritization showing most important content first on smaller screens, and responsive grid patterns (grid-cols-1 md:grid-cols-2 lg:grid-cols-3).
Frontend Responsive
When to use this skill:
- •When creating new UI layouts or page structures
- •When implementing navigation menus that adapt to screen size
- •When working with images, videos, or media that need to scale
- •When defining typography sizes across breakpoints (text-base md:text-lg lg:text-xl)
- •When implementing grid or flexbox layouts with responsive variants
- •When adding Tailwind responsive classes (sm:, md:, lg:, xl:, 2xl:)
- •When testing components on mobile (375px), tablet (768px), and desktop (1440px) viewports
- •When ensuring touch targets are appropriately sized (minimum 44x44px) for mobile
- •When optimizing page performance for mobile networks
- •When implementing collapsible sections or accordions for mobile
- •When working on any visual component files (*.tsx, *.jsx, *.module.css)
- •When reviewing designs across multiple device sizes
- •When using auto-fit grid patterns for flexible card layouts
- •When prioritizing content visibility on smaller screens
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