dangapp-cva-factory

Community

Build 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-authority for clear size, intent, state, or radius variations.
  • Unified Class Merging: Integrates external className props seamlessly using a shared cn() utility.
  • Use Case: Refactor a button component that currently uses many if/else statements for different sizes and colors into a single component with semantic variants like size="small" and color="primary".

Quick Start

Create a new reusable UI primitive using class-variance-authority and a shared cn() merge path.

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.