responsive
Installation
SKILL.md
Responsive UI Skill
Transform or audit any UI to be fully responsive across all breakpoints.
Breakpoints (Tailwind defaults)
| Prefix | Min-width | Target devices |
|---|---|---|
| (none) | 0px | Mobile portrait |
sm: |
640px | Mobile landscape / small tablet |
md: |
768px | Tablet portrait |
lg: |
1024px | Tablet landscape / small laptop |
xl: |
1280px | Desktop |
2xl: |
1536px | Wide desktop |
Mobile-First Rules
- Start with the mobile layout, then add
sm:/md:/lg:overrides - Never use fixed pixel widths on containers — use
w-full,max-w-*, or% - Replace
flex-rowwithflex-colon mobile:flex flex-col md:flex-row - Replace multi-column grids with single column:
grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3