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
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-fullon html and body, andshrink-0on 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 -yInstalls 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- Pwa Development463
- Story Zoom463
- Belief Systems461
- Reverse Outliner458
- Voice Analysis458
- Speech Adaptation457
- Chapter Drafter454
- Context Network453
- Book Marketing452
- Competency Builder451
- Product Analysis450
- Language Evolution449
- World Fates442
- Revealjs Presenter436
- Memetic Depth433
- Sensitivity Check433
- Conlang432
- Moral Parallax431
- Dna Extraction429
- Gitea Workflow421
- Media Adaptation419
- Statistical Distance417
- Table Tone416
- Sleep Story414
Similar to Shadcn Layouts
More Frontend & UI Codetailwind-css-patternsgiuseppe-trisciuoglio/developer-kit18.4K installsModern Tailwind CSS v4.1 patterns for responsive layouts, components, dark mode, and accessibility.
better-layoutjakubkrehel/skills41.5K installsStructural guidance that tests a layout against resizing, translation and RTL mirroring before it ships.
shadcn-component-reviewmattbx/shadcn-skills680 installsReview custom components and layouts against shadcn patterns, style conventions, and composition rules.
responsive-layout-builderonewave-ai/claude-skills384 installsGuide for building responsive layouts with CSS Grid, Flexbox, and container queries, mobile-first.
tailwindcss-advanced-layoutsjosiahsiegel/claude-plugin-marketplace8.2K installsTailwind CSS layout recipes covering CSS Grid, Flexbox, container queries, sticky positioning, and overflow handling.
ui-stylingnextlevelbuilder/ui-ux-pro-max-skill56.2K installsPragmatic styling guide pairing shadcn/ui components with Tailwind CSS and canvas-based visual design.