Layouts for every screen size
Ask Claude for a layout and it builds phone first with container queries, fluid type and CSS Grid.
See it work
You give it
Use responsive-design. I run the website for a used bookstore in Seattle. Our "Staff pick" card shows a book cover, title, author, a two-line staff note and a $14 price. It appears in three places: a 3-across grid on the home page, a 280px sidebar on blog posts, and full width on the "Picks of the month" page. Right now it switches to its side-by-side layout with @media (min-width: 768px), so in the blog sidebar on a laptop it goes side by side and the title gets crushed to one word per line. Covers are 600x900 JPGs. Rewrite the card so it adapts to where it's placed, with type that scales. Plain CSS, no framework.
You get back
The bug is the media query itself. @media (min-width: 768px) asks how wide the screen is, but the card needs to know how wide its own slot is. On a laptop the screen is wide, so the card goes side by side even when its slot is the 280px sidebar. A container query asks the slot instead, so the same card picks the right layout in all three places without knowing which page it's on.
Where the card should change, from its content
- Side by side needs a cover column, a text column wide enough for a title, and space around them: a 160px cover, 16px gap, at least about 190px for the title (around 19 characters a line at 20px), and 16px padding each side. That's about 400px, so the card goes side by side at a 400px slot (25rem) and stays stacked below it.
- Above about 640px (40rem) there's room for a bigger cover and a bigger title, which is the "Picks of the month" page.
What each place gets
Place · Slot width · Layout
Blog sidebar · 280px · Stacked: cover on top, text below
Home page, 3 across · Depends on your page width: on a 1,200px page, about 380px each · Stacked
Picks of the month · Full width · Side by side with a 220px cover
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Starts with the phone and adds for bigger screens.
- Sets breakpoints by content, not by device.
- Uses fluid type and container queries.
What's inside
responsive-design/CREDITS.mdresponsive-design/LICENSEresponsive-design/SKILL.mdresponsive-design/references/breakpoint-strategies.mdresponsive-design/references/container-queries.mdresponsive-design/references/details.mdresponsive-design/references/fluid-layouts.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use responsive-design".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.