- Home
- Skills
- Ancoleman
- Ai Design Components
- Designing Layouts
designing-layouts_skill
- Python
291
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ancoleman/ai-design-components --skill designing-layouts- outputs.yaml15.6 KB
- SKILL.md6.8 KB
Overview
This skill designs robust layout systems and responsive interfaces using modern CSS techniques. It covers grid systems, flexbox patterns, container queries, spacing tokens, and mobile-first breakpoints to create flexible, accessible layouts. Use it to structure application shells, dashboards, galleries, and complex page compositions that adapt across devices.
How this skill works
The skill inspects layout requirements, recommends a layout method (Grid, Flexbox, or Container Queries), and applies design tokens for consistent spacing and breakpoints. It supplies patterns and configuration scripts to generate responsive breakpoints, fluid typography, and accessibility checks. It includes practical templates (sidebar, masonry, split-pane) and integration guidance for utility frameworks like Tailwind.
When to use it
- Building responsive admin dashboards with sidebars and headers
- Creating grid-based content cards, galleries, or masonry layouts
- Designing split-pane or resizable panel interfaces
- Establishing mobile-first breakpoint systems for apps
- Structuring application shells with navigation and main content
Best practices
- Start mobile-first and use semantic breakpoints (sm, md, lg, xl)
- Prefer CSS Grid for two-dimensional layouts and Flexbox for alignment
- Use design tokens for spacing, sizes, and breakpoint values
- Leverage container queries for component-level responsiveness
- Validate semantic HTML and ARIA landmarks for accessibility
Example use cases
- Admin dashboard with fixed sidebar, responsive content area, and footer
- Auto-fit responsive gallery using repeat(auto-fit, minmax(...))
- Masonry or Pinterest-style layout with responsive column collapse
- Split-pane editor with resizable panels and accessible landmarks
- Tailwind integration for utility-first spacing and responsive screens
FAQ
Use container queries when a component’s layout must adapt to its container size rather than the viewport, such as cards in varying grid widths. Use media queries for page-level breakpoint adjustments.
How do I choose between Grid and Flexbox?
Choose Grid for two-dimensional layouts with rows and columns. Choose Flexbox for one-dimensional layouts or fine alignment within a single axis. Combine both when needed.