component-builder
SKILL.md
Component Builder
This skill documents the tailwind-variants pattern used for UI components in this project. All UI components should follow this pattern for consistency and type safety.
When to Use
Use this skill when:
- Creating new UI components in
src/lib/ui/ - Refactoring existing components to use tailwind-variants
- Adding new variants to existing components
Quick Start
Every component needs two files:
componentName.variants.ts- Variant definitionsComponentName.svelte- The component