Responsive layout system
Skill swd3k/skills/agent-skills/web-design/responsive-layout-system
Implement robust responsive layouts with breakpoints, fluid type, and container patterns. Use when fixing mobile breakage, overflow, or inconsistent section widths.From its SKILL.md
npx -y skills add swd3k/skills --skill responsive-layout-systemAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.9 KB, 208 tokens by cl100k_base, as published. Nobody here has run it
Responsive Layout System
Defaults
:root {
--content: 72rem;
--gutter: clamp(1rem, 4vw, 2rem);
}
.container {
width: min(100% - 2*var(--gutter), var(--content));
margin-inline: auto;
}
Breakpoints (example)
- sm 640 · md 768 · lg 1024 · xl 1280
- Design mobile structure first for content sites; desktop-first OK for dense tools
Rules
- Prefer
min,clamp, flex/grid over hard px pages - Avoid horizontal scroll on 360px width
- Tables: cardify or scroll with shadow hints
- Images:
max-width:100%; height:auto
Pitfalls
- Fixed 1440px mockups shipped as-is
- Hover-only critical actions on mobile
Acceptance
- 360 / 768 / 1280 checked for main templates
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.