Responsive Web Design

Responsive Web Design

Builds mobile-first responsive layouts with CSS Grid, Flexbox and media queries, including responsive navigation, cards and typography.

Skill files7 files

references/

templates/

SKILL.md90 lines
1
---
2
name: responsive-web-design
3
description: >
4
Create responsive layouts using CSS Grid, Flexbox, media queries, and
5
mobile-first design. Use when building adaptive interfaces that work across
6
all devices.
7
---
8
9
# Responsive Web Design
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Build mobile-first responsive interfaces using modern CSS techniques including Flexbox, Grid, and media queries to create adaptable user experiences.
22
23
## When to Use
24
25
- Multi-device applications
26
- Mobile-first development
27
- Accessible layouts
28
- Flexible UI systems
29
- Cross-browser compatibility
30
31
## Quick Start
32
33
Minimal working example:
34
35
```css
36
/* Mobile styles (default) */
37
.container {
38
display: flex;
39
flex-direction: column;
40
padding: 16px;
41
gap: 16px;
42
}
43
44
.card {
45
padding: 16px;
46
border-radius: 8px;
47
background: white;
48
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
49
}
50
51
.grid {
52
display: grid;
53
grid-template-columns: 1fr;
54
gap: 16px;
55
}
56
57
/* Tablet (640px and up) */
58
@media (min-width: 640px) {
59
.container {
60
flex-direction: row;
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Mobile-First Media Query Strategy](references/mobile-first-media-query-strategy.md) | Mobile-First Media Query Strategy |
71
| [Flexbox Responsive Navigation](references/flexbox-responsive-navigation.md) | Flexbox Responsive Navigation |
72
| [CSS Grid Responsive Layout](references/css-grid-responsive-layout.md) | CSS Grid Responsive Layout |
73
| [Responsive Typography](references/responsive-typography.md) | Responsive Typography |
74
| [Responsive Cards Component](references/responsive-cards-component.md) | Responsive Cards Component |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Follow established patterns and conventions
81
- Write clean, maintainable code
82
- Add appropriate documentation
83
- Test thoroughly before deploying
84
85
### ❌ DON'T
86
87
- Skip testing or validation
88
- Ignore error handling
89
- Hard-code configuration values
90

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…