Frontend Styling
This Skill helps apply proper TailwindCSS styling following project conventions.
When to Use This Skill
Use this Skill when:
- •Styling templates or components - Need to apply Tailwind classes
- •Creating new UI elements - Buttons, cards, forms, etc.
- •User mentions "CSS", "Tailwind", "styling", "classes"
- •Reviewing markup - Checking for proper class usage
- •Adding component classes - Need to modify
tailwind.components.css - •Building Tailwind - Running build/watch commands
Key Rules
- •Always check
tailwind.components.cssfirst — use component classes (.btn,.btn-primary,.surface) when available - •Don't duplicate base styles —
h1-h4,a, lists, and form elements are pre-styled in@layer base - •Only use inline Tailwind classes for unique layout/spacing/positioning
- •Repeated patterns should be added to
tailwind.components.css - •Run
npm run tailwind_buildafter CSS changes
Refer to @docs/frontend_styling.md for full details and examples.