Basic information
About component-builder
Create UI components using tailwind-variants for type-safe styling. Use when creating or editing components in src/lib/ui/.
component-builder is an agent skill listed in the AddMCP.net directory, published by svelte-society. Runtime: TypeScript. The repository has 450 GitHub stars. Source code is hosted on github.com. Related topics: javascript, svelte, sveltekit.
Overview
What is component-builder?
name: component-builder description: Create UI components using tailwind-variants for type-safe styling. Use when creating or editing components in src/lib/ui/.
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
Reference Files
- Canonical example:
src/lib/ui/Button.svelteandsrc/lib/ui/button.variants.ts - Compound variants example:
src/lib/ui/Tag.svelteandsrc/lib/ui/tag.variants.ts - Multi-variant example:
src/lib/ui/ContentCard.svelteandsrc/lib/ui/contentCard.variants.ts
Pattern Overview
Key Patterns
Templates
For copy-paste templates, see [TEMPLATES.md](TEMPLATES.md).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In