Responsive Design
Responsive web design patterns, mobile-first CSS, container queries, fluid typography, and accessibility-first layouts
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill responsive-designgit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/frontend/responsive-design ~/.claude/skills/responsive-designPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Responsive Design
Modern responsive design patterns using mobile-first methodology, CSS Grid, Flexbox, and container queries.
## Mobile-First Approach
```css
/* Base styles = Mobile */
.container {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Tablet */
@media (min-width: 768px) {
.container {
flex-direction: row;
flex-wrap: wrap;
padding: 2rem;
}
}
/* Desktop */
@media (min-width: 1024px) {
.container {
max-width: 1200px;
margin: 0 auto;
padding: 3rem;
}
}
```
## Container Queries
```css
/* Instead of viewport queries, query the container */
.card-container {
container-type: inline-size;
container-name: card;
}
@container card (min-width: 400px) {
.card {
display: grid;
grid-template-columns: 200px 1fr;
}
}
@container card (max-width: 399px) {
.card {
display: flex;
flex-direction: column;
}
}
```
## Fluid Typography
```css
/* Fluid type scale using clamp() */
:root {
--text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
--text-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
--text-lg: clamp(1.25rem, 1rem + 1vw, 1.75rem);
--text-xl: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
```
---
## Common Mistakes
1. **Starting with desktop**: Always design mobile-first. It's easier to add than remove.
2. **Relying only on media queries**: Use `min-width` not `max-width`. Use container queries for reusable components.Details
- Skill name
responsive-design- Repository
- cosmicstack-labs/mercury-agent-skills
- Path
categories/frontend/responsive-design/SKILL.md- License
- MIT
- Repo updated
- 25 August 2026
FAQ
What does the Responsive Design skill do?
Responsive web design patterns, mobile-first CSS, container queries, fluid typography, and accessibility-first layouts
How do I install the Responsive Design skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill responsive-design. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Responsive Design popular?
It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.
Related skills
Accessibility
492cosmicstack-labs/mercury-agent-skills
Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.
Accessibility Testing
492cosmicstack-labs/mercury-agent-skills
WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation
Agent Audit Logging
492cosmicstack-labs/mercury-agent-skills
Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.
Review Responder
492cosmicstack-labs/mercury-agent-skills
Monitor customer reviews across platforms and generate thoughtful, brand-aligned responses. Flags urgent negative reviews for priority attention, drafts responses that turn detractors into promoters, and tracks review sentiment trends over time.
React Patterns
492cosmicstack-labs/mercury-agent-skills
Component patterns, hooks, state management, and performance optimization for React applications
State Management
492cosmicstack-labs/mercury-agent-skills
Modern frontend state management patterns, tools, architecture decisions, and scalability patterns
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.