Shadcn Layouts

Generate correct shadcn/Tailwind layouts by applying CSS mental models. This skill should be used when the user asks to 'create a shadcn layout', 'fix layout issues', 'debug CSS height problems', 'make scrolling work', or has issues with Tailwind flex/grid. Keywords: shadcn, Tailwind, layout, CSS, flex, grid, height, scroll, overflow.

191 stars 24 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jwynia/agent-skills --skill shadcn-layouts
Manual install
git clone --depth 1 https://github.com/jwynia/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/tech/frontend/design/shadcn-layouts ~/.claude/skills/shadcn-layouts

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# shadcn/Tailwind Layouts

Help generate shadcn/Tailwind components that render correctly the first time. Most agent-generated UI fails due to missing mental models about how CSS layout works—not syntax errors, but assumption gaps.

## When to Use This Skill

Use this skill when:
- Creating shadcn/Tailwind layouts
- Debugging height/scroll issues
- Fixing flex/grid problems
- Setting up full-page app shells

Do NOT use this skill when:
- Writing backend code
- Working on non-Tailwind CSS projects
- Designing (use frontend-design first)

## Core Principle

**CSS layout flows from constraints. Height flows down from explicit ancestors. Width flows up from content. Agents fail because they apply classes without understanding the constraint chain.**

## Critical Mental Models

### Model 1: Height Inheritance Chain

`h-full` means `height: 100%`. 100% of what? **100% of the parent's computed height.**

```
BROKEN (chain incomplete):
<html>                        
  <body>                      
    <div class="h-full">      

WORKING (chain complete):
<html class="h-full">         
  <body class="h-full">       
    <div class="h-full">      
```

**Rule:** Trace from element up to `<html>`. Every ancestor needs explicit height, OR use viewport units (`h-screen`) to break the chain.

### Model 2: Flex Overflow Gotcha

Flex children have implicit `min-height: auto`, preventing shrinking below content size.
Read the full skill on GitHub

Details

Skill name
shadcn-layouts
Path
skills/tech/frontend/design/shadcn-layouts/SKILL.md
Repo updated
24 February 2026

FAQ

What does the Shadcn Layouts skill do?

Generate correct shadcn/Tailwind layouts by applying CSS mental models. This skill should be used when the user asks to 'create a shadcn layout', 'fix layout issues', 'debug CSS height problems', 'make scrolling work', or has issues with Tailwind flex/grid. Keywords: shadcn, Tailwind, layout, CSS, flex, grid, height, scroll, overflow.

How do I install the Shadcn Layouts skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jwynia/agent-skills --skill shadcn-layouts. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Shadcn Layouts popular?

It lives in jwynia/agent-skills, which has 191 GitHub stars and 24 forks.

Related skills

Abstract Strategy

191

jwynia/agent-skills

Design abstract strategy games with perfect information, no randomness, and strategic depth. Use when designing a board game, exploring abstract strategy games, brainstorming game mechanics, or evaluating game balance. Keywords: board game, game design, strategy, mechanics, balance.

Other24

Adaptation Synthesis

191

jwynia/agent-skills

Synthesize new works from extracted functional DNA documents. Use when adapting a source work to a new context, when combining multiple source extractions, or when generating variations that preserve function while changing form.

Other24

Agent Bootstrap

191

jwynia/agent-skills

Bootstrap agentic development environment from agent.toml manifest

AI, LLMs & Agents24

Social Listening

150

guia-matthieu/clawfu-skills

Monitor social media and online mentions for brand sentiment, emerging issues, and conversation trends

Frontend & DesignIn 1 list32

Shadcn

228

pproenca/dot-skills

shadcn/ui component library best practices and patterns (formerly shadcn-ui). This skill should be used when writing, reviewing, or refactoring shadcn/ui components to ensure proper architecture, accessibility, and performance. Triggers on tasks involving Radix primitives, Tailwind styling, form validation with React Hook Form, data tables, theming, or component composition patterns.

Frontend & Design19

Sonic Branding

150

guia-matthieu/clawfu-skills

Build a complete audio identity for your brand using the 7-step methodology—from brand assessment through deployment—creating memorable sonic assets that drive recognition and trust. Use when: Creating audio branding for a new company; Refreshing outdated brand sounds; Developing audio guidelines for consistent usage; Planning sonic identity across touchpoints; Briefing agencies on audio branding projects

Frontend & DesignIn 1 list32

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.