# UI Responsive Grids

> Advanced CSS Grid and Flexbox techniques for layouts that adapt seamlessly to any device. Use when this capability is needed.

- Skill: `tomevault-io/ui-responsive-grids` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ui-responsive-grids`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ui-responsive-grids/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ui-responsive-grids

---


# Responsive Grids

A layout should be fluid, not just "breakpoint-dependent." This skill explores the power of modern CSS for flexible design.

## CSS Grid
- **Auto-Fill vs. Auto-Fit**: Create many-column layouts that adjust automatically without media queries.
- **Fractional Units (fr)**: Flexible distribution of space.
- **Grid Areas**: For semantic, easy-to-read layout structures.

## Flexbox
- **Alignment**: Mastering `justify-content` and `align-items`.
- **Flex-Grow/Shrink**: Controlling how items fill or squeeze into space.
- **Gap**: Using the modern `gap` property instead of margin hacking.

## The "Modern" Breakpoint
Instead of hardcoding device widths, use `minmax()` and `clamp()` to create truly fluid typography and layouts.
`width: clamp(300px, 50%, 800px);`

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/jcorpac) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

