Skip to content
jwynia avatar

Shadcn Layouts

Mental-model guide that fixes shadcn/Tailwind height, flex, grid, and scroll bugs before code is generated.

CCM score
54 of 100
skills.sh installs
465
GitHub stars
195
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers height inheritance chains, flex overflow with min-h-0, and grid parent/child declaration rules
  • Includes diagnostic states SL1 through SL5 with symptoms and fixes, plus app shell, dashboard, and card grid patterns
  • Enforces a pre-generation checklist covering import aliases, h-full on html and body, and shrink-0 on fixed elements
  • Designed for generating shadcn/Tailwind layouts and debugging scroll or height issues without a design-first workflow

Install

$ npx -y skills add jwynia/agent-skills --skill shadcn-layouts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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>                        <!-- no height -->
  <body>                      <!-- no height -->
    <div class="h-full">      <!-- 100% of nothing = 0 -->

Details

Repository
github.com/jwynia/agent-skills
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

More from jwynia/agent-skills

All 118

Similar to Shadcn Layouts

More Frontend & UI Code