Responsive Design

Responsive Design

Teaches an AI coding agent modern responsive layout techniques: container queries, fluid typography, CSS Grid and mobile-first breakpoints.

Skill files5 files

references/

SKILL.md45 lines
1
---
2
name: responsive-design
3
description: 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.
4
---
5
6
# Responsive Design
7
8
Master modern responsive design techniques to create interfaces that adapt seamlessly across all screen sizes and device contexts.
9
10
## When to Use This Skill
11
12
- Implementing mobile-first responsive layouts
13
- Using container queries for component-based responsiveness
14
- Creating fluid typography and spacing scales
15
- Building complex layouts with CSS Grid and Flexbox
16
- Designing breakpoint strategies for design systems
17
- Implementing responsive images and media
18
- Creating adaptive navigation patterns
19
- Building responsive tables and data displays
20
21
## Detailed patterns and worked examples
22
23
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
24
25
## Best Practices
26
27
1. **Mobile-First**: Start with mobile styles, enhance for larger screens
28
2. **Content Breakpoints**: Set breakpoints based on content, not devices
29
3. **Fluid Over Fixed**: Use fluid values for typography and spacing
30
4. **Container Queries**: Use for component-level responsiveness
31
5. **Test Real Devices**: Simulators don't catch all issues
32
6. **Performance**: Optimize images, lazy load off-screen content
33
7. **Touch Targets**: Maintain 44x44px minimum on mobile
34
8. **Logical Properties**: Use inline/block for internationalization
35
36
## Common Issues
37
38
- **Horizontal Overflow**: Content breaking out of viewport
39
- **Fixed Widths**: Using px instead of relative units
40
- **Viewport Height**: 100vh issues on mobile browsers
41
- **Font Size**: Text too small on mobile
42
- **Touch Targets**: Buttons too small to tap accurately
43
- **Aspect Ratio**: Images squishing or stretching
44
- **Z-Index Stacking**: Overlays breaking on different screens
45

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,595 prompts

More by @OpenSourceBuffGuy

See all
Red Black Manga Tabloid Poster Style prompt image

Red Black Manga Tabloid Poster Style

Defines a black, white and scarlet manga tabloid poster style with huge condensed type, cropped ink characters, halftone shading and folded photocopy paper texture.

image-prompt, json-prompt, placeholders, poster, manga, comics, typography, printmaking, limited-palette, text-rendering, vertical-format, widescreen, graphic-design, for-designers, for-artists, black-and-white, ink-drawing, character-design, structured-output, long-form, advanced, style-reference, halftone

FlowStudio Power Apps Canvas Edit prompt image

FlowStudio Power Apps Canvas Edit

Guides an AI to build and edit Power Apps canvas apps through FlowStudio MCP: screens, controls, Power Fx, galleries and data connections as checked named edits.

agent-skill, power-apps, mcp, code-generation, power-automate, sharepoint, no-code, tool-use, best-practices, debugging, long-form, advanced, for-developers, ui-ux, database, code, power-fx, flowstudio

Academic Poster Designer prompt image

Academic Poster Designer

Turns the AI into an academic poster specialist that distils research into a core message and plans layout, section text and visuals for conference posters.

system-prompt, act-as, planner, academic-writing, graphic-design, research-methods, for-researchers, for-students, xml-tags, structured-output, guardrails, outline, step-by-step-guide, presentation, communication, higher-education, advanced, long-form, formal, critique

Reviews

Loading reviews…

Discussion

Loading comments…