Skip to content
Skills Library
Design & UX · Testing

test-responsive-design

/test-responsive-design

Make UIs responsive across all devices and verify responsiveness using Playwright. Includes scrollbar testing, breakpoint verification, and layout validation. Use when implementing new features, fixing layout issues, or ensuring mobile compatibility.

Licence
MIT
Last repository change
01.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 01.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Make UIs responsive across all devices and verify responsiveness using Playwright. Includes scrollbar testing, breakpoint verification, and layout validation. Use when implementing new features, fixing layout issues, or ensuring mobile compatibility.

Original author description

Make UIs responsive across all devices and verify responsiveness using Playwright. Includes scrollbar testing, breakpoint verification, and layout validation. Use when implementing new features, fixing layout issues, or ensuring mobile compatibility.

How it works

  1. Purpose
  2. Standard Breakpoints
  3. Responsive Design Patterns
  4. Scrollbar & Overflow Testing
  5. Playwright Verification Workflow
  6. Responsive Design Checklist
  7. Common Mistakes
Original SKILL.md headings · 121 lines, 531 words
SKILL.md preview
---
name: test-responsive-design
description: Make UIs responsive across all devices and verify responsiveness using Playwright. Includes scrollbar testing, breakpoint verification, and layout validation. Use when implementing new features, fixing layout issues, or ensuring mobile compatibility.
---

# Responsive Design & Verification Skill

## Purpose
Ensure all UI features are fully responsive and work correctly across all device sizes, from mobile to desktop.

## Standard Breakpoints

| Breakpoint | Min Width | Device Type |
|------------|-----------|-------------|
| default | 0px | Mobile |
| `sm:` | 640px | Large mobile |
| `md:` | 768px | Tablet |
| `lg:` | 1024px | Laptop |
| `xl:` | 1280px | Desktop |
| `2xl:` | 1536px | Large Desktop |

### Testing Sizes

```typescript
const testSizes = [
  { width: 375, height: 667, name: 'Mobile (iPhone SE)' },
  { width: 768, height: 1024, name: 'Tablet (iPad)' },
  { width: 1280, height: 720, name: 'Desktop (HD)' },
  { width: 1920, height: 1080, name: 'Desktop (Full HD)' },
];
```

## Responsive Design Patterns

### Navigation
- Mobile (< 768px): Hamburger menu, collapsed drawer
- Desktop (≥ 768px): Full horizontal navigation bar

### Data Tables
- Mobile: Stack rows as cards or use horizontal scroll
- Desktop: Traditional table layout with all columns

### Forms
- Mobile: Single column, full-width inputs, large touch targets (≥ 44x44px)
- Desktop: Grid layouts, inline labels

### Layout
- Use `container mx-auto px-4 sm:px-6 lg:px-8`
- Responsive grids: `grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3`

### Typography
- Scale font sizes: `text-2xl md:text-3xl lg:text-4xl`

## Scrollbar & Overflow Testing

- Lists/Tables: Minimum 15-20 items to trigger vertical scroll
- Horizontal: Test with wide tables (8+ columns)
- Always check for unintentional horizontal page scroll

## Playwright Verification Workflow

### 1. Navigate to Feature
```
mcp_playwright_navigate → { url: 'http://localhost:5173/feature' }
```

### 2. Test Each Breakpoint
```typescript
const breakpoints = [
  { width: 375, height: 667, name: 'Mobile' },
  { width: 768, height: 1024, name: 'Tablet' },
  { width: 1280, height: 720, name: 'Desktop' },
];

for (const bp of breakpoints) {
  // Resize, screenshot, verify elements
  mcp_playwright_resize → { width: bp.width, height: bp.height }
  mcp_playwright_screenshot → { name: `feature-${bp.name}` }
}
```

### 3. Check for Overflow
```js
() => {
  const bodyWidth = document.body.scrollWidth;
  const windowWidth = window.innerWidth;
  return {
    hasOverflow: bodyWidth > windowWidth,
    overflowElements: Array.from(document.querySelectorAll('*'))
      .filter(el => el.scrollWidth > windowWidth)
      .map(el => ({ tag: el.tagName, class: el.className }))
  };
}
```

## Responsive Design Checklist

### Layout
- [ ] Content stacks on mobile (single column)
- [ ] Multi-column layouts work on tablet/desktop
- [ ] No horizontal overflow on any breakpoint
- [ ] Container max-widths prevent over-stretching

### Navigation
- [ ] Mobile: Hamburger menu or collapsed nav
- [ ] Desktop: Full navigation visible
- [ ] Touch targets ≥ 44x44px on mobile

### Tables/Lists
- [ ] Mobile: Card view or horizontal scroll
- [ ] Desktop: Full table with all columns
- [ ] Vertical scroll with 15-20+ items
- [ ] Sticky headers work when scrolling

### Typography
- [ ] Font sizes scale with breakpoints
- [ ] Line length appropriate (45-75 characters)
- [ ] Text remains readable on small screens

## Common Mistakes
1. Desktop-first thinking — start mobile-first
2. Fixed widths — use `w-full`, `max-w-*`
3. Insufficient test data — always provide 15-20+ items
4. Tiny touch targets — 44x44px minimum on mobile

Versions

The database has no other skills named test-responsive-design.

Database snapshot: 13.11.2026 · package version 019426d05a14 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100responsive-patterns
    Use when designing complex responsive layouts — breakpoint strategy, layout shifts, content reflow, responsive typography, container queries, and ensuring the experience works across the full device spectrum
  • 82adapt
    Responsive layout pass covering breakpoints, touch targets, safe areas, and fluid type. Use when the UI has layout or touch issues on mobile/tablet, when adding a new screen that hasn't been tested across viewports, or when the user says \"make it responsive\" / \"fix mobile…
  • 90frontend-responsive-design
    Use this skill when the user says 'responsive design', 'container queries', 'breakpoints', 'mobile-first', 'fluid typography', 'responsive layout', 'media queries', 'clamp', 'adaptive design', or when building responsive frontend UIs. This skill enforces: mobile-first CSS,…
  • 95responsive-design
    Responsive web design sub-skill. Provides mobile-first layout patterns, CSS Grid/Flexbox strategies, responsive images, fluid typography, container queries, and breakpoint systems. Pull this in whenever building or reviewing UI that must work across mobile, tablet, desktop, and…
  • 100design-review
    Comprehensive UI/UX design review with live environment testing, responsive validation, accessibility compliance (WCAG 2.1 AA), and visual consistency analysis using Playwright. Use when user runs /design-review, /review:design-review, requests a "design review", "UI review",…
  • 95responsive-design
    Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.