dangapp-cva-factory
CommunityBuild reusable UI primitives.
Authorkimjuyoung1127
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the creation of reusable UI components by abstracting complex class logic into manageable variants, preventing ad-hoc branching and ensuring a consistent styling API.
Core Features & Use Cases
- Variant-Driven Components: Define UI primitives with
class-variance-authorityfor clear size, intent, state, or radius variations. - Unified Class Merging: Integrates external
classNameprops seamlessly using a sharedcn()utility. - Use Case: Refactor a button component that currently uses many
if/elsestatements for different sizes and colors into a single component with semantic variants likesize="small"andcolor="primary".
Quick Start
Create a new reusable UI primitive using class-variance-authority and a shared cn() merge path.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dangapp-cva-factory Download link: https://github.com/kimjuyoung1127/dangapp/archive/main.zip#dangapp-cva-factory Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.