SKILL.md
505 lines · 1,782 words
CSS Master
Purpose
Provide expert-level CSS guidance for building maintainable, performant, and responsive user interfaces. This skill covers layout systems, architectural patterns, modern CSS features, and methodology selection for teams of any size.
Grid vs Flexbox Decision Framework
LAYOUT DECISION TREE:
Is the layout one-dimensional (row OR column)?
YES -> Flexbox
NO -> Is it two-dimensional (rows AND columns)?
YES -> Grid
Additional signals for Grid:
- Content needs to align to a defined grid structure
- Overlapping elements needed (grid-area overlap)
- Template-based layout (named areas)
- Item placement should be independent of source order
Additional signals for Flexbox:
- Items should distribute along a single axis
- Content size should drive layout
- Simple centering needed
- Navigation bars, toolbars, card rows