agentskills.codes
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.zip

Installs 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:

Workflow

  1. 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.
  2. Inspect the relevant HTML and JavaScript before changing classes or structure.
  3. Start from the smallest supported viewport and progressively enhance for larger containers/viewports.
  4. 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.
  5. Maintain accessibility while changing visuals:
    • Explicit labels for inputs and controls.
    • Meaningful alt text for images.
    • Semantic buttons/links instead of clickable divs.
    • Visible focus states and keyboard operability.
    • Announced loading/error states when practical.
  6. 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.
  7. If animation or camera behavior changes, respect prefers-reduced-motion where practical.
  8. 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.

Search skills

Search the agent skills registry