create-symbol-state-component
CommunityConvert SVG symbols into stateful runtime components
Software Engineering#state management#svg#css selectors#dynamic components#runtime API#figma conversion#gradient fills
Authorwembrndvx
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill turns inline SVG HTML into a state-driven dynamic component so you can change visual states (like colors) efficiently at runtime without rewriting SVG markup.
Core Features & Use Cases
- State-based rendering via dataset: Uses
data-statusso the component switches appearance by changing a single attribute rather than replacinginnerHTML. - CSS-controlled gradients and fills: Predefines gradient and solid-color layers and targets them through
data-status="..."selectors. - Runtime API for state control: Provides
setStatus(config, status)andgetStatus()to manage component state in a predictable way. - Layer naming conventions for consistent styling: Enforces
layer-grad0~layer-grad9,layer-fill-primary,layer-fill-secondary, andlayer-strokeso CSS can reliably map states to SVG parts.
Quick Start
Ask the AI to generate a symbol state component from Figma_Conversion/Static_Components/[project]/[component]/ and output views/component.html, styles/component.css, and runtime scripts that expose setStatus and getStatus for updating data-status.
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: create-symbol-state-component Download link: https://github.com/wembrndvx/WEB_BUILDER_TOOLKIT/archive/main.zip#create-symbol-state-component 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 471,000+ vetted skills library on demand.