component-variants

Manages Glass, Outline, and Flat UI component variants with dark mode and hover states using CVA-style props.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill component-variants-jorge-ivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-variants
Source: https://github.com/Jorge-Ivan/uam-hogar-nazareth-web/tree/main/.claude/skills/component-variants
Command: npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill component-variants-jorge-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of UI components by providing a structured way to manage multiple visual styles and variations, ensuring consistency and maintainability.

Core Features & Use Cases

  • Variant Management: Define and apply distinct visual styles (e.g., Glass, Outline, Flat) to components.
  • Style Switching: Easily toggle between different component appearances based on context or props.
  • Dark Mode Support: Ensures variants adapt correctly to light and dark themes.
  • Use Case: When building a design system, use this Skill to define a Button component with 'glass', 'outline', and 'flat' variants, each with appropriate hover states and dark mode styling.

Quick Start

Use the component-variants skill to create a card component with glass, outline, and flat variants.

Frequently Asked Questions about component-variants

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple UI component variants like glass, outline, and flat in a design system?

Manage multiple UI component variants by defining distinct visual styles like glass, outline, and flat using variant props. A system like class-variance-authority structures these styles to ensure design consistency and maintainability across your frontend project.

How does dark mode styling work when switching between component variants?

Dark mode styling for component variants works by ensuring each defined visual style adapts correctly to light and dark themes. The variant system handles dark mode per variant, applying appropriate theme-specific styling alongside interactive hover states.

What is the best way to structure visual styles for UI components without creating repetitive code?

The best way to structure visual styles for UI components is using a variant management system to define and apply distinct appearances based on context or props. This approach streamlines creation and prevents repetitive styling code.

Can I use class-variance-authority to toggle component appearances dynamically?

Yes, you can use class-variance-authority to toggle component appearances dynamically. It allows you to easily switch between different visual styles based on context or props, supporting defined characteristics and interactive hover states for elements.

Does this approach to styling UI components support interactive hover states for each variant?

Yes, this approach to styling UI components supports interactive hover states for each variant. When defining distinct visual styles like glass, outline, and flat, the system includes appropriate hover states to handle interactive elements effectively.