Responsive Design Audit
Audit $ARGUMENTS for responsive design quality.
Checks to perform
- •
Read the target file(s) — if a route like
/booksis given, find the corresponding page inapp/and all components it imports - •
Breakpoint coverage: For every layout-affecting class, verify responsive variants exist:
- •Grid columns should scale (e.g.,
sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5) - •Padding/margins should adjust (
px-3 sm:px-6 lg:px-8) - •Font sizes should scale where appropriate
- •Flag any fixed widths that could cause horizontal overflow on mobile
- •Grid columns should scale (e.g.,
- •
Mobile/Desktop parity: Check for
hidden sm:flex/sm:hiddenpatterns- •Both mobile and desktop variants should show equivalent content
- •Flag content visible on desktop but completely missing on mobile (or vice versa)
- •
Touch targets: Interactive elements should be at least 44x44px on mobile
- •Check button sizes, link padding, icon button dimensions
- •Flag any
h-6 w-6or smaller interactive elements without adequate padding
- •
Overflow safety: Look for potential horizontal overflow
- •Long text without
truncate,line-clamp-*, oroverflow-hidden - •Fixed-width containers without
max-w-full - •Flex containers without
min-w-0on text children
- •Long text without
- •
Container consistency: Verify the standard container pattern is used:
codemx-auto max-w-7xl px-3 py-4 sm:px-6 lg:px-8
Output
Produce a checklist with pass/fail for each check, specific line numbers for issues, and suggested fixes.