
Responsive Web Design
- 965 installs
- 305 repo stars
- Updated March 4, 2026
- aj-geddes/useful-ai-prompts
responsive-web-design is an agent skill that generates production-ready responsive CSS using mobile-first Flexbox, Grid, and media queries for developers building adaptive web interfaces across devices.
About
responsive-web-design is a frontend skill from aj-geddes/useful-ai-prompts for creating mobile-first responsive layouts with CSS Grid, Flexbox, and media queries. It targets multi-device applications, accessible flexible UI systems, and adaptive user experiences without device-specific code forks. Developers reach for responsive-web-design when building landing pages, dashboards, or ecommerce layouts that must reflow cleanly from phone to desktop breakpoints. The skill outputs production-ready CSS patterns following modern mobile-first conventions rather than desktop-down retrofits.
- Mobile-first default styles with Flexbox and CSS Grid
- Breakpoint strategy using min-width media queries
- Cross-device layout patterns for cards, containers, and navigation
- Reference guides for mobile-first media query strategy, Flexbox patterns, and accessible responsive components
- Ready-to-adapt CSS snippets that work across browsers and devices
Responsive Web Design by the numbers
- 965 all-time installs (skills.sh)
- +30 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #399 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill responsive-web-designAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 965 |
|---|---|
| repo stars | ★ 305 |
| Security audit | 3 / 3 scanners passed |
| Last updated | March 4, 2026 |
| Repository | aj-geddes/useful-ai-prompts ↗ |
How do you build mobile-first responsive CSS layouts?
Generate production-ready responsive CSS using mobile-first Flexbox, Grid, and media queries for any web interface.
Who is it for?
Frontend developers shipping multi-device web UIs who need mobile-first Flexbox, Grid, and media query patterns generated quickly.
Skip if: Native mobile app layout work in Swift or Kotlin, or projects using CSS framework-only layouts like Tailwind without custom breakpoint tuning.
When should I use this skill?
User builds adaptive web interfaces, asks for mobile-first CSS, Flexbox/Grid layouts, or responsive media query breakpoints.
What you get
Production-ready responsive CSS with Flexbox/Grid layouts and breakpoint media queries for adaptive interfaces.
- responsive CSS stylesheet
- mobile-first layout markup
Files
Responsive Web Design
Table of Contents
Overview
Build mobile-first responsive interfaces using modern CSS techniques including Flexbox, Grid, and media queries to create adaptable user experiences.
When to Use
- Multi-device applications
- Mobile-first development
- Accessible layouts
- Flexible UI systems
- Cross-browser compatibility
Quick Start
Minimal working example:
/* Mobile styles (default) */
.container {
display: flex;
flex-direction: column;
padding: 16px;
gap: 16px;
}
.card {
padding: 16px;
border-radius: 8px;
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
/* Tablet (640px and up) */
@media (min-width: 640px) {
.container {
flex-direction: row;
// ... (see reference guides for full implementation)Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Mobile-First Media Query Strategy | Mobile-First Media Query Strategy |
| Flexbox Responsive Navigation | Flexbox Responsive Navigation |
| CSS Grid Responsive Layout | CSS Grid Responsive Layout |
| Responsive Typography | Responsive Typography |
| Responsive Cards Component | Responsive Cards Component |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
CSS Grid Responsive Layout
CSS Grid Responsive Layout
/* 12-column grid system */
.grid-container {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 16px;
padding: 16px;
}
.grid-item {
grid-column: span 12;
padding: 16px;
background: white;
border-radius: 8px;
border: 1px solid #e0e0e0;
}
/* Mobile: stacked */
.header {
grid-column: span 12;
}
.sidebar {
grid-column: span 12;
}
.main {
grid-column: span 12;
}
.footer {
grid-column: span 12;
}
/* Tablet: 2-column layout */
@media (min-width: 768px) {
.header {
grid-column: span 12;
}
.sidebar {
grid-column: span 3;
}
.main {
grid-column: span 9;
}
.footer {
grid-column: span 12;
}
}
/* Desktop: 3-column with sidebar */
@media (min-width: 1024px) {
.header {
grid-column: span 12;
}
.sidebar {
grid-column: span 2;
}
.main {
grid-column: span 8;
}
.aside {
grid-column: span 2;
}
.footer {
grid-column: span 12;
}
}Flexbox Responsive Navigation
Flexbox Responsive Navigation
<!-- HTML -->
<nav class="navbar">
<div class="navbar-brand">Logo</div>
<button class="navbar-toggle" id="menuToggle">Menu</button>
<ul class="navbar-menu" id="navMenu">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<style>
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background-color: #333;
color: white;
}
.navbar-brand {
font-size: 24px;
font-weight: bold;
}
.navbar-toggle {
display: block;
background: none;
border: none;
color: white;
cursor: pointer;
font-size: 24px;
}
.navbar-menu {
display: none;
list-style: none;
flex-direction: column;
position: absolute;
top: 60px;
left: 0;
right: 0;
background-color: #222;
padding: 16px;
gap: 8px;
}
.navbar-menu.active {
display: flex;
}
@media (min-width: 768px) {
.navbar-toggle {
display: none;
}
.navbar-menu {
display: flex;
flex-direction: row;
position: static;
background-color: transparent;
padding: 0;
gap: 32px;
}
}
.navbar-menu a {
color: white;
text-decoration: none;
}
</style>Mobile-First Media Query Strategy
Mobile-First Media Query Strategy
/* Mobile styles (default) */
.container {
display: flex;
flex-direction: column;
padding: 16px;
gap: 16px;
}
.card {
padding: 16px;
border-radius: 8px;
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
/* Tablet (640px and up) */
@media (min-width: 640px) {
.container {
flex-direction: row;
padding: 24px;
}
.grid {
grid-template-columns: repeat(2, 1fr);
}
.card {
padding: 24px;
}
}
/* Desktop (1024px and up) */
@media (min-width: 1024px) {
.container {
max-width: 1200px;
margin: 0 auto;
padding: 32px;
}
.grid {
grid-template-columns: repeat(3, 1fr);
}
.card {
padding: 32px;
}
}
/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
.container {
max-width: 1400px;
}
.grid {
grid-template-columns: repeat(4, 1fr);
gap: 24px;
}
}Responsive Cards Component
Responsive Cards Component
<div class="card-grid">
<div class="card">
<img src="image.jpg" alt="Card image" class="card-image" />
<div class="card-content">
<h3>Card Title</h3>
<p>Card description goes here</p>
<a href="#" class="card-link">Learn More</a>
</div>
</div>
</div>
<style>
.card-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
padding: 16px;
}
@media (min-width: 640px) {
.card-grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
padding: 20px;
}
}
@media (min-width: 1024px) {
.card-grid {
grid-template-columns: repeat(3, 1fr);
gap: 24px;
padding: 24px;
}
}
.card {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition:
transform 0.2s,
box-shadow 0.2s;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.card-image {
width: 100%;
height: auto;
aspect-ratio: 16/9;
object-fit: cover;
}
.card-content {
padding: 16px;
}
.card-content h3 {
margin: 0 0 8px;
font-size: 18px;
}
.card-content p {
margin: 0 0 12px;
color: #666;
font-size: 14px;
}
.card-link {
display: inline-block;
color: #0066cc;
text-decoration: none;
font-weight: 500;
}
</style>Responsive Typography
Responsive Typography
/* Fluid typography */
html {
font-size: 16px;
}
h1 {
font-size: clamp(24px, 8vw, 48px);
line-height: 1.2;
}
h2 {
font-size: clamp(20px, 5vw, 36px);
line-height: 1.3;
}
p {
font-size: clamp(14px, 2vw, 18px);
line-height: 1.6;
max-width: 65ch;
}
/* Responsive spacing */
.container {
padding: clamp(16px, 5vw, 48px);
margin-left: auto;
margin-right: auto;
width: 90%;
max-width: 1200px;
}
/* Responsive images */
img {
max-width: 100%;
height: auto;
display: block;
}
picture {
display: block;
}// Component: [Name]
// TODO: Customize for your framework (React, Vue, Svelte, etc.)
import React from 'react';
interface Props {
// TODO: Define props
}
export function ComponentName({ }: Props) {
// TODO: Add state and effects
return (
<div>
{/* TODO: Add component markup */}
</div>
);
}
Related skills
FAQ
What CSS techniques does responsive-web-design use?
responsive-web-design uses mobile-first CSS with Flexbox, CSS Grid, and media queries to build adaptable interfaces across devices. The skill targets accessible flexible UI systems for multi-device web applications.
When should developers use responsive-web-design?
Developers should use responsive-web-design when building landing pages, dashboards, or ecommerce layouts that must reflow from mobile to desktop using modern mobile-first breakpoint patterns instead of desktop-down retrofits.
Is Responsive Web Design safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.