What is the Designing Layouts skill?
Designing Layouts is a skill in the ancoleman/ai-design-components collection. It guides an AI coding agent through responsive layout systems: 12 column and auto-fit grids, flexbox patterns, container queries, mobile-first breakpoints and spacing tokens, with helper scripts for breakpoints, fluid type and layout accessibility checks.
Designing Layouts is one of 76 skills in the ai-design-components repository. Its SKILL.md tells an AI coding agent how to structure pages and app shells with modern CSS, instead of improvising a layout each time.
It applies when you are building a responsive dashboard, a card gallery, a sidebar shell, a masonry grid or a split pane. It reads spacing and breakpoints from design tokens defined in a sister skill.
What it tells the agent to do
- Use CSS Grid for two dimensional layouts and flexbox for one dimensional alignment.
- Reach for container queries when a component should respond to its container, not the viewport.
- Write mobile-first breakpoints at 640, 768, 1024, 1280 and 1536 pixels.
- Apply spacing from a token scale built on a 4px or 8px base.
- Check semantic HTML and landmark regions before calling a layout done.
Who the skill is for
Best for
- Admin dashboards with a sidebar, header and content area.
- Card grids and galleries that must reflow without media query clutter.
- Teams that keep spacing and breakpoints in design tokens.
- Projects that use Tailwind, since the skill includes a config example.
Not for
- Visual style, color or type choices. It is about structure.
- Animation. Use a motion skill for that.
- Non-web targets. Every pattern in the file is CSS or a web framework.
Use it with UiChemy
Layout patterns from this skill are plain CSS, so they can be reused in a WordPress build. UiChemy Composer writes HTML, CSS and JS for WordPress pages, which suits applying a grid you have already designed. Click Get Started on uichemy.com.
How to install Designing Layouts Skill: Grid, Flexbox and Responsive Rules
git clone https://github.com/ancoleman/ai-design-components.git && cd ai-design-components && ./install.shWhich plugin group contains this skill is not stated in the files read, so use the installer menu to find it.Clone the repository
Run the git clone line, then
cd ai-design-components.Run the installer
Run
./install.sh. The README calls it the recommended route and describes an interactive menu for skills, skillchain and plugins.Or use plugins directly
The README also gives
claude plugin marketplace add ancoleman/ai-design-componentsfollowed byclaude plugin installcommands for its plugin groups.Ask for a layout
Describe a dashboard or grid and confirm the agent picks Grid, flexbox or container queries on purpose.
Check that it loaded
Ask for a responsive card grid. The result should use an auto-fit grid or container queries, spacing tokens and mobile-first breakpoints.
Key features
- 12 column gridProvides a CSS Grid container with repeat(12, 1fr), token-based gap and container padding, and span classes for 3, 4 and 6 columns.
- Auto-fit responsive gridUses repeat(auto-fit, minmax(min(280px, 100%), 1fr)) so cards reflow by available width without breakpoint rules.
- Holy grail flexbox layoutGives a column flex shell with a growing body, fixed width nav and aside, and min-width 0 on the main area to prevent overflow.
- Container queriesShows container-type inline-size with named containers and @container rules at 400px and 600px, and says they are production ready in modern browsers.
- Mobile-first breakpointsDefines five semantic breakpoints from sm at 640px to 2xl at 1536px, each with a matching container max width.
- Spacing scaleDefines xs to 3xl custom properties from 4px to 64px and applies them to sections, containers, cards and stacked content.
- Tailwind integrationMaps the spacing and screen tokens into a tailwind.config.js extend block, so utility classes and tokens agree.
- Helper scriptsLists three Node scripts: generate_breakpoints, calculate_fluid_typography and validate_layout_accessibility, each run from the command line.
- Layout accessibility checkAsks for semantic HTML and ARIA landmark regions, validated by a script against a component file.
- Reference and example filesPoints to six reference notes and four example components, including an admin layout, responsive grid, masonry and split pane.
Frequently asked questions
What is the Designing Layouts skill?
It is the designing-layouts folder in ancoleman/ai-design-components. Its SKILL.md guides an AI coding agent through responsive layout systems with CSS Grid, flexbox, container queries, mobile-first breakpoints and spacing tokens, with scripts and example components included.
How do I install the Designing Layouts skill?
Clone the repository and run ./install.sh, which the README recommends and describes as an interactive installer. The README also gives Claude plugin commands that add the ai-design-components marketplace and install its plugin groups.
When should I use container queries instead of media queries?
The skill uses container queries when a component should adapt to the size of its container, not the viewport, such as a card inside a sidebar. Media queries remain for page level breakpoints. The skill marks container queries as production ready in modern browsers.
Does Designing Layouts work with Tailwind?
Yes, in part. The skill includes a tailwind.config.js example that extends spacing and screens with its design token values, and points to a library guide for Tailwind and styled-components. The patterns themselves are written as plain CSS.
What breakpoints does it use?
It uses a mobile-first set: 640px for small, 768px for medium, 1024px for large, 1280px for extra large and 1536px for 2xl. Each has a matching container max width, and the skill points to a script that generates the set.
What are Designing Layouts alternatives?
For layout spacing and rhythm inside a design pass, see layout. For a grid style with visible frames, see framed-grid-layout. For tokens that feed spacing, tailwind-design-system covers a Tailwind setup.
Does it support Cursor or Codex?
The SKILL.md does not name any agent. The README installation steps are an install script and Claude plugin commands, so other agents would need the skill folder copied by hand into their own skills directory.
Can I use these layouts in WordPress?
The CSS patterns are standard, so you can reuse them in a theme or page. UiChemy Composer writes HTML, CSS and JS for WordPress, which can hold a custom grid. Click Get Started on uichemy.com.


