tailwindcss-advanced-layouts

Implements CSS Grid, Flexbox, and container query layout patterns with Tailwind CSS.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/jeje-it/template-projet --skill tailwindcss-advanced-layouts-jeje-it
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwindcss-advanced-layouts
Source: https://github.com/jeje-it/template-projet/tree/main/.agents/skills/tailwindcss-advanced-layouts
Command: npx skills add https://github.com/jeje-it/template-projet --skill tailwindcss-advanced-layouts-jeje-it

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building complex responsive layouts like holy grail structures, masonry grids, and sticky headers requires deep knowledge of CSS Grid, Flexbox, and modern features like container queries, which developers often implement inconsistently or incorrectly. ## Core Features & Use Cases - Grid Layout Recipes: Provides ready-made patterns for holy grail layouts, grid-template-areas via Tailwind v4 @utility directives, auto-fill/auto-fit responsive grids, and subgrid alignment. - Flexbox & Positioning Patterns: Covers flexible item sizing, sticky headers and sidebars, fixed navigation, z-index layering systems, and scroll snap carousels. - Modern CSS Features: Includes container queries with named containers, aspect-ratio utilities, multi-column text layouts, logical properties for RTL support, and print styles. - Use Case: When building a dashboard with a sticky header, collapsible sidebar, and responsive card grid, apply the provided grid-template-areas and container query patterns to get a working layout without writing custom CSS from scratch. ## Quick Start Ask the AI to build a responsive holy grail layout with a sticky header and auto-fit card grid using Tailwind CSS.

Frequently Asked Questions about tailwindcss-advanced-layouts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a holy grail layout with Tailwind CSS?▼

Use CSS Grid with grid-rows-[auto_1fr_auto] for the page structure and grid-cols-[250px_1fr_300px] for the middle section containing sidebar, main content, and aside. For responsive behavior, switch column definitions per breakpoint with md: and lg: prefixes.

How to use container queries in Tailwind CSS?▼

Install the @tailwindcss/container-queries plugin, mark a parent element with the @container class, then use variants like @md:flex-row on children to respond to container width instead of viewport width. Named containers use syntax like @container/sidebar with @[300px]/sidebar: variants.

What is the difference between auto-fill and auto-fit in CSS Grid?▼

Auto-fill creates as many tracks as fit in the container, including empty ones, while auto-fit collapses empty tracks so existing items stretch to fill available space. Both are used with repeat() and minmax(), such as grid-cols-[repeat(auto-fit,minmax(250px,1fr))].

Does Tailwind CSS support subgrid?▼

Tailwind v4 supports subgrid through custom utilities defined with the @utility directive, such as grid-template-columns: subgrid. This lets nested grid items align to the parent grid tracks when spanning multiple columns.

Why does my flex item overflow instead of truncating text?▼

Flex items have a default min-width of auto, preventing them from shrinking below content size. Add min-w-0 to the flex item and truncate to the text element so long text clips with an ellipsis instead of overflowing the container.

When should I use CSS Grid vs Flexbox?▼

Use Grid for two-dimensional layouts where you control both rows and columns, such as page structures and card grids. Use Flexbox for one-dimensional layouts like navigation bars, button groups, and aligning items along a single axis.