auto-layout
Installation
SKILL.md
Layout & CSS — What Claude Gets Wrong
You wrap everything in cards, use flexbox for 2D layouts, hardcode values that exist as design tokens, and leave dead wrapper elements everywhere. In production: designs drift from the system, layouts break at intermediate widths, and every component has 3 unnecessary nesting levels.
The Eight Rules
- Cards are for repeated/grouped content only — not for page sections
- Grid for 2D, flex for 1D — stop using flex-wrap + calc
- Reference every token — if a CSS variable or theme token exists, use it
- Every element earns its place — no wrapper around a single child
min-height: 100dvh— neverheight: 100vh- Z-index needs a system —
isolation: isolate+ named scale - Flex children need
min-width: 0for truncation to work - Transition specific properties — never
transition: all