tailwind
Installation
SKILL.md
Tailwind CSS Best Practices
Layout
- Use
flex,gridfor layouts - Use
container mx-autofor centered content - Use
space-x-*,space-y-*for spacing between children - Use
gap-*with flex/grid - Use responsive prefixes:
sm:,md:,lg:,xl:,2xl:
Components
- Extract repeated patterns to components, not
@apply - Use
groupandgroup-hover:for parent-child interactions - Use
peerandpeer-checked:for sibling interactions - Use
ring-*for focus styles - Use
divide-*for borders between children