variant
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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| variant (this skill) | 0 | 5mo | No flags | Intermediate |
| scroll-experience | 101 | 10mo | No flags | Intermediate |
| anthropic-frontend-design | 12 | 10mo | No flags | Intermediate |
| infographic-structure-creator | 1 | 9mo | No flags | Intermediate |
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.
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.
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.
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.
design-context
WellApp-ai
Refresh UI/UX context from design system, Storybook, and codebase
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.