vuralserhat86/antigravity-agentic-skills/responsive-design
Claude Code and agent skill by vuralserhat86/antigravity-agentic-skills
- community
Checking that the SKILL.md file is still in the repository.
Build responsive, mobile-first layouts using fluid containers, flexible units, media queries, and touch-friendly design that works across all screen sizes. Use this skill when creating or modifying UI layouts, responsive grids, breakpoint styles, mobile navigation, or any interface that needs to adapt to different screen sizes. Apply when working with responsive CSS, media queries, viewport settings, flexbox/grid layouts, mobile-first styling, breakpoint definitions (mobile, tablet, desktop), touch target sizing, relative units (rem, em, %), image optimization for different screens, or testing layouts across multiple devices. Use for any task involving multi-device support, responsive design patterns, or adaptive layouts.
Install
npx vskill@latest install vuralserhat86/antigravity-agentic-skills/responsive-designSKILL.md
Frontend Responsive Design Standards
Rule: Mobile-first development with consistent breakpoints, fluid layouts, relative units, and touch-friendly targets.
When to use this skill
- When creating or modifying layouts that need to work on mobile, tablet, and desktop
- When implementing mobile-first design patterns starting with mobile layout
- When writing media queries or breakpoint-specific styles
- When using flexible units (rem, em, %) instead of fixed pixels for scalability
- When implementing fluid layouts with percentage-based widths or flexbox/grid
- When ensuring touch targets meet minimum size requirements (44x44px) for mobile
- When optimizing images and assets for different screen sizes and mobile networks
- When testing UI across multiple device sizes and breakpoints
- When maintaining readable typography across all screen sizes
- When prioritizing content display on smaller screens through layout decisions
- When using responsive design utilities in CSS frameworks (Tailwind, Bootstrap responsive classes)
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend responsive.
Mobile-First Development - Mandatory
Always start with mobile layout, then enhance for larger screens.
Bad (desktop-first):
Good (mobile-first):
Why mobile-first:
- Forces content prioritization
- Better performance on mobile (no overriding)
- Progressive enhancement over graceful degradation
Standard Breakpoints
Identify and use project breakpoints consistently:
Common breakpoint systems:
Tailwind:
Bootstrap:
Check existing codebase for breakpoint definitions before creating new ones.
Usage (Tailwind):
Usage (CSS):
Never use arbitrary breakpoints like 850px or 1150px unless explicitly required.
Fluid Layouts
Use flexible containers that adapt to screen size:
Bad (fixed widths):
Good (fluid):
Patterns for fluid layouts:
- Flexbox:
flex: 1,flex-grow,flex-shrink - Grid:
1fr,minmax(),auto-fit,auto-fill - Percentage widths:
width: 100%,max-width: 1200px - Container queries (modern):
@container (min-width: 400px)
Relative Units Over Fixed Pixels
Use rem/em for scalability and accessibility:
Bad:
Good:
When to use each unit:
rem: Font sizes, spacing, layout dimensions (scales with root font size)em: Component-relative sizing (scales with parent font size)%: Widths, heights relative to parentpx: Borders (1px), shadows, very small valuesvw/vh: Full viewport dimensions, hero sectionsch: Text-based widths (e.g.,max-width: 65chfor readable line length)
Framework utilities handle this automatically:
Touch-Friendly Design
Minimum touch target size: 44x44px (iOS) / 48x48px (Android)
Bad:
Good:
Touch target checklist:
- [ ] Buttons minimum 44x44px
- [ ] Links in text have adequate spacing
- [ ] Form inputs have sufficient height (min 44px)
- [ ] Icon buttons have padding for larger hit area
- [ ] Spacing between interactive elements (min 8px)
Readable Typography
Maintain readable font sizes without zoom:
Bad:
Good:
Typography guidelines:
- Body text: 16px (1rem) minimum
- Small text: 14px (0.875rem) minimum
- Line height: 1.5 for body, 1.2 for headings
- Line length: 45-75 characters (use
max-width: 65ch) - Contrast: WCAG AA minimum (4.5:1 for normal text)
Responsive typography:
Or with clamp (fluid):
Content Priority on Mobile
Show most important content first, hide or collapse secondary content:
Bad:
Good:
Strategies:
- Hide non-essential elements on mobile
- Use hamburger menus for navigation
- Collapse accordions/tabs for secondary content
- Stack layouts vertically on mobile
- Use
orderproperty to reorder content
Image Optimization
Serve appropriate images for device size:
Bad:
Good:
Or with modern formats:
Framework-specific:
Testing Across Devices
Verify layouts at key breakpoints before completing work:
Test checklist:
- [ ] Mobile (375px - iPhone SE)
- [ ] Mobile large (414px - iPhone Pro Max)
- [ ] Tablet (768px - iPad)
- [ ] Laptop (1024px)
- [ ] Desktop (1440px)
Testing methods:
- Browser DevTools responsive mode
- Real device testing (iOS/Android)
- Browser extensions (Responsive Viewer)
- Automated visual regression tests
Common issues to check:
- Horizontal scrolling on mobile
- Text overflow or truncation
- Overlapping elements
- Unreadable font sizes
- Touch targets too small
- Images not loading or distorted
Common Responsive Patterns
Navigation:
Grid layouts:
Sidebar layouts:
Verification Checklist
Before completing responsive work:
- [ ] Started with mobile layout
- [ ] Used project's standard breakpoints
- [ ] Implemented fluid layouts (no fixed widths)
- [ ] Used relative units (rem/em) for sizing
- [ ] Touch targets minimum 44x44px
- [ ] Typography readable without zoom (16px+ body)
- [ ] Prioritized content on mobile
- [ ] Optimized images for different sizes
- [ ] Tested at all key breakpoints
- [ ] No horizontal scrolling on mobile
- [ ] No overlapping or truncated content
Quick Reference
| Situation | Action | |
|---|---|---|
| Starting new layout | Begin with mobile (320-375px) | |
| Need breakpoint | Use project standard (check existing code) | |
| Setting width | Use width: 100% + max-width | |
| Setting font size | Use rem (16px = 1rem) | |
| Setting spacing | Use rem or framework utilities | |
| Button too small | Ensure min 44x44px with padding | |
| Text too small | Minimum 16px (1rem) for body | |
| Testing layout | Check 375px, 768px, 1024px, 1440px |
Responsive Design v1.1 - Enhanced
🔄 Workflow
Kaynak: Google Web Fundamentals & MDN Responsive Design
Aşama 1: Modern Layout Techniques
- [ ] Container Queries: Ekran genişliğine (
@media) değil, bileşenin bulunduğu alanın genişliğine (@container) göre stil yaz. - [ ] CSS Grid & Subgrid: Karmaşık 2D layoutlar için Grid kullan. İç içe hizalama için
subgridkullan. - [ ] Fluid Typography: Sabit px/rem yerine
clamp(1rem, 5vw, 2rem)ile akışkan yazı tipleri kullan.
Aşama 2: Interaction & Adaptation
- [ ] Interaction Queries: Sadece ekran boyutu değil, input tipine göre (
@media (hover: hover)) stil değiştir (Dokunmatik cihaz optimizasyonu). - [ ] Picture Element: Farklı ekranlar için farklı görselleri (
<picture>,srcset) sun (Art Direction & Performance). - [ ] Dark Mode:
prefers-color-schemeile sistem temasını destekle.
Aşama 3: Verification
- [ ] Device Lab: Sadece Chrome DevTools ile değil, gerçek bir iOS ve Android cihazda test et (100vh sorunu vb. için).
- [ ] Zoom: Sayfa %200 zoom yapıldığında düzenin bozulmadığını ve okunabilir olduğunu doğrula.
- [ ] Landscape: Mobil cihazı yan çevirince layout'un çalışmaya devam ettiğini kontrol et.
Kontrol Noktaları
| Aşama | Doğrulama | |
|---|---|---|
| 1 | Yatay kaydırma çubuğu (Horizontal Scroll) oluşuyor mu? (Taşan içerik var mı?). | |
| 2 | Tıklanabilir alanlar (Touch Targets) en az 44x44px mi? | |
| 3 | CLS (Cumulative Layout Shift) 0.1'in altında mı? (Yüklenirken zıplama var mı?). |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/responsive_design/SKILL.md
Popularity
- Repository stars
- 43
- Repository forks
- 12
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vuralserhat86/antigravity-agentic-skills/responsive-design)