Tailwind Style Guidelines
This skill ensures clean, consistent, and maintainable Tailwind CSS usage.
When to use this skill
Use this skill when:
- •Writing or refactoring UI components
- •Tailwind class lists become long or repetitive
- •UI consistency matters
Do NOT use this skill when:
- •Styling is outside Tailwind
- •The task is purely logic-based
How to use it
- •Group Tailwind classes logically (layout → spacing → typography → color)
- •Detect repeated utility patterns
- •Extract repeated UI into reusable components
- •Prefer semantic spacing and color tokens
Styling Rules
- •No inline styles
- •No arbitrary values unless unavoidable
- •Avoid massive
classNamestrings - •Prefer component extraction over class reuse
Expected Output
- •Clean Tailwind class usage
- •Visually consistent UI
- •Readable and maintainable components