FR
frontend-responsive-design
Use this skill for tasks involving layout, styling, accessibility, responsive behavior, Tailwind utility usage, HTML structure, visual QA, or frontend interaction design in either app.
Install
mkdir -p .claude/skills/frontend-responsive-design && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15478" && unzip -o skill.zip -d .claude/skills/frontend-responsive-design && rm skill.zipInstalls to .claude/skills/frontend-responsive-design
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use this skill for tasks involving layout, styling, accessibility, responsive behavior, Tailwind utility usage, HTML structure, visual QA, or frontend interaction design in either app.184 chars · catalog description✓ has a “when” trigger
About this skill
Frontend Responsive Design Skill
Use this skill for tasks involving layout, styling, accessibility, responsive behavior, Tailwind utility usage, HTML structure, visual QA, or frontend interaction design in either app.
Primary References
Prefer current platform documentation for behavior questions:
- Responsive web design basics: https://web.dev/articles/responsive-web-design-basics
- MDN container queries: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment/Container_queries
- MDN responsive images: https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/HTML/Responsive_images
- WCAG quick reference: https://www.w3.org/WAI/WCAG22/quickref/
- Tailwind CSS docs when editing Tailwind-heavy markup: https://tailwindcss.com/docs
Workflow
- Determine the app and styling system:
strava-explorer/uses Vite, Tailwind-loaded styles, and utility-heavy HTML.aqi-map/uses Mapbox Assembly classes plus inline CSS.
- Inspect the relevant HTML and JavaScript before changing classes or structure.
- Start from the smallest supported viewport and progressively enhance for larger containers/viewports.
- Prefer resilient modern CSS:
clamp()for fluid spacing/type with limits.- CSS Grid/Flexbox with
minmax(),auto-fit, and sensible intrinsic sizing. - Container queries for component-level changes when the component can appear in multiple page contexts.
- Viewport media queries for major page-shell changes.
- Maintain accessibility while changing visuals:
- Explicit labels for inputs and controls.
- Meaningful
alttext for images. - Semantic buttons/links instead of clickable divs.
- Visible focus states and keyboard operability.
- Announced loading/error states when practical.
- Account for map UX: avoid panels that trap gestures, cover important map controls, or make touch targets smaller than comfortable mobile sizes. For custom map markers, keep text high-contrast and thumbnails legible over satellite/photorealistic backgrounds.
- If animation or camera behavior changes, respect
prefers-reduced-motionwhere practical. - Validate with the relevant build command and, for perceptible UI changes, use a browser/screenshot check when available.
Review Checklist
- No horizontal scrolling at common mobile widths unless intentionally part of a map canvas.
- Form controls are reachable by keyboard and have accessible names.
- Interactive targets are large enough for touch use.
- Text remains legible over map backgrounds, custom markers, popovers, and side panels.
- Layout works with long activity names, empty states, loading states, and error messages.
- External CSS frameworks do not override map internals unexpectedly.