Responsive Layout
CautionImplements responsive design patterns using CSS Grid, Flexbox, and container queries with mobile-first breakpoint strategies.
Install
Claude Code
Copy the SKILL.md file to your project's .claude/skills/ directory About This Skill
Responsive Layout is a frontend skill that implements adaptive design patterns across all screen sizes. It leverages modern CSS features including Grid, Flexbox, container queries, and clamp() functions to create layouts that work seamlessly from mobile to ultra-wide displays.
How It Works
- Layout analysis — Examines your design or existing markup to determine the optimal layout strategy
- Grid architecture — Defines a responsive grid system with named areas and auto-fit/auto-fill patterns
- Breakpoint strategy — Sets up mobile-first media queries at standard breakpoints (640, 768, 1024, 1280px)
- Fluid sizing — Uses clamp() and calc() for typography and spacing that scales smoothly
- Component adaptation — Adjusts component layouts (cards, navbars, forms) per viewport
Best For
- Teams building responsive web applications from scratch
- Modernizing legacy float/table-based layouts to Grid/Flexbox
- Dashboard and admin panel layouts with complex grid arrangements
- Marketing sites requiring pixel-perfect responsive behavior
Modern CSS Features
Prioritizes container queries over media queries where component-level responsiveness is more appropriate. Uses CSS logical properties for internationalization support and subgrid for nested alignment.
Use Cases
- Building mobile-first responsive page layouts
- Converting fixed-width designs to fluid layouts
- Implementing complex CSS Grid dashboard layouts
- Creating responsive navigation patterns (hamburger, sidebar, tabs)
Pros & Cons
Pros
- + Leverages modern CSS Grid and container queries
- + Mobile-first approach ensures small-screen quality
- + Generates clean, maintainable layout code
Cons
- - Container queries may not be supported in older browsers
- - Complex nested layouts may need manual fine-tuning
- - Cannot preview visual output — needs browser testing
Related AI Tools
Related Skills
Figma to Code
CautionConverts Figma design files into production-ready HTML, CSS, and React components with accurate spacing, typography, and responsive behavior.
Design System Builder
CautionSets up design token systems, component libraries, and style guides with consistent theming, spacing scales, and typography hierarchies.
Stay Updated on Agent Skills
Get weekly curated skills + safety alerts
每周精选 Skills + 安全预警