Skill library

Agent skill UI design

Tailwind CSS Advanced Layouts

Organize content through layout, alignment and responsive composition.

  • Responsive layout

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/josiahsiegel/claude-plugin-marketplace/tree/main/plugins/tailwindcss-master/skills/tailwindcss-advanced-layouts --skill tailwindcss-advanced-layouts --agent claude-code --yes

Check this file in your project.claude/skills/tailwindcss-advanced-layouts/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/josiahsiegel/claude-plugin-marketplace/tree/main/plugins/tailwindcss-master/skills/tailwindcss-advanced-layouts --skill tailwindcss-advanced-layouts

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a running Tailwind CSS v4 app and representative cards. The fixture compiled with Tailwind CSS 4.3.5 and verified computed tracks in Chromium.

View operation manual

What this skill helps with

  • Organize content through layout, alignment and responsive composition.

Good for

  • Composition and spacing
Skill name
tailwindcss-advanced-layouts
Scenario
Make a gallery work with two cards or many
Deliverable
A responsive grid patch and measured layouts for sparse, dense and narrow states.
Skill name
tailwindcss-advanced-layouts

Define a styling task with a visible result

A request with an unclear outcome

Use four equal columns everywhere.

Sparse lists leave unused width and very narrow containers can force cards below their usable minimum.

A workflow with observable results

  1. Decide how sparse and full rows should behave
  2. Choose and compile the track rule
  3. Measure columns at real container sizes

Tailwind CSS Advanced Layouts operation manual

Use grid track sizing to make a card list respond to its available width and content count.

Replace the bracketed details with your own project and target.

  1. Decide how sparse and full rows should behave

    Use real card content to decide a minimum track width.

    Prompt · Step 1
    Use tailwindcss-advanced-layouts for [gallery] inside [page or panel]. Measure available widths and the smallest usable card width for [long title and action]. State whether sparse cards should expand or reserve empty tracks, and whether a container narrower than the minimum must stay in one column. Capture the existing DOM order.
  2. Choose and compile the track rule

    Apply explicit auto-fit or auto-fill based on the card count behavior.

    Prompt · Step 2
    Use tailwindcss-advanced-layouts to build [approved grid]. If sparse cards should fill the row, use auto-fit and a minmax track that can shrink below the preferred card width, for example with min(100%, 16rem). If empty tracks should persist, use auto-fill. Keep the full arbitrary grid class in a scanned source and preserve content order.
  3. Measure columns at real container sizes

    Verify fit, order and overflow for two and many cards.

    • The narrow grid fits with a single usable track.
    • The wide sparse grid follows the chosen empty-track behavior.
    Prompt · Step 3
    Use tailwindcss-advanced-layouts to run [existing build] and inspect [local gallery] with [two cards and a dense set] at [narrow and wide container widths]. Report the emitted grid-template-columns, computed track sizes and any overflow from long card content. Check keyboard reading order and attach screenshots or computed values for each configuration.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Sparse cards occupy too little widthReference
Command or reference
SKILL.md · Auto-Fill and Auto-Fit Grids
Examples
Try auto-fit if the design should collapse empty tracks.
The minimum track causes overflowReference
Command or reference
SKILL.md · Auto-Fill and Auto-Fit Grids
Examples
Cap the track minimum by available width and test with long text.

Tailwind CSS Advanced Layouts troubleshooting

Why does the first card widen after changing auto-fill?

In the tested sparse row, auto-fit collapsed empty tracks and the remaining cards took more width. Check both sparse and full rows before choosing.