Provides a type-safe system for managing component visual variants.

Install

mkdir -p .claude/skills/variant && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13685" && unzip -o skill.zip -d .claude/skills/variant && rm skill.zip

Installs to .claude/skills/variant

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Variant type system for component visual variants. Invoke when defining component variant/type attributes using VARIANT_TYPES constant and Enum utility.
152 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Define component visual variants
  • →Extend existing variant values
  • →Create custom enumerations for attributes
  • →Map variants to icons
  • →Integrate with BEM for class management

How it works

The skill uses the VARIANT_TYPES constant and an Enum utility to standardize the definition and extension of visual variant attributes for components.

Inputs & outputs

You give it
A component attribute definition using VARIANT_TYPES or a custom array
You get back
A type-safe component attribute with defined variants and default values

When to use variant

  • →Define new component variants
  • →Implement type-safe visual attributes
  • →Standardize icon mapping for components

About variant

Standardizes the use of visual variants through `VARIANT_TYPES` and enum utilities, ensuring consistency in component attributes and class mapping.

Variant type system for component visual variants. Invoke when defining component variant/type attributes using VARIANT_TYPES constant and Enum utility.

When not to use it

  • →When defining component attributes that are not visual variants or enumerations
  • →When the attribute name is 'type' instead of 'variant'

Limitations

  • →Requires the attribute name to be 'variant' for visual variants
  • →Requires using 'danger' as the error type, not 'error'
  • →Relies on the Enum utility to distinguish enum types from ordinary constructors

How it compares

This system provides a standardized, type-safe approach to managing component visual variants and their associated icons, unlike ad-hoc string-based attribute definitions.

Compared to similar skills

variant side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
variant (this skill)05moNo flagsIntermediate
scroll-experience10110moNo flagsIntermediate
anthropic-frontend-design1210moNo flagsIntermediate
infographic-structure-creator19moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

scroll-experience

davila7

Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not just pages. Use when: scroll animation, parallax, scroll storytelling, interactive story, cinematic website.

101142

anthropic-frontend-design

chaibuilder

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

1237

infographic-structure-creator

antvis

Generate or update infographic Structure components for this repo (TypeScript/TSX in src/designs/structures). Use when asked to design, implement, or modify structure layouts (list/compare/sequence/hierarchy/relation/geo/chart), including layout logic, component composition, and registration.

110

logo-with-variants

crafter-station

Create logo components with multiple variants (icon, wordmark, logo) and light/dark modes. Use when the user provides logo SVG files and wants to create a variant-based logo component following the Clerk pattern in the Elements project.

47

design-context

WellApp-ai

Refresh UI/UX context from design system, Storybook, and codebase

17

threejs-postprocessing

CloudAI-X

Three.js post-processing - EffectComposer, bloom, DOF, screen effects. Use when adding visual effects, color grading, blur, glow, or creating custom screen-space shaders.

17

Search skills

Search the agent skills registry