What problem does it solve?
This Skill provides a structured approach for designing and styling UI components, ensuring consistency, modularity, and adherence to Tailwind CSS best practices. It guides the use of @apply and @layer components directives, and specifies component creation locations to maintain a clean codebase.
Core Features & Use Cases
- Tailwind CSS Best Practices: Enforces modularity, separate CSS files, and use of
@apply and @layer components.
- Tailwind v4.1 Context: Directs to specific documentation for design principles, custom styles, functions, and directives.
- Component Creation Guidelines: Specifies where to create new components (
srs/components) and what not to touch (srs/components/ui).
- Use Case: When building a new UI component for a Next.js app, use this skill to ensure all Tailwind CSS styling follows the project's conventions, including using nested classes and custom utilities.
Quick Start
Design a new card component in srs/components, creating a separate CSS file and using Tailwind CSS @layer components for styling.