Icons
Implement accessible icons with proper sizing, color inheritance, and performance.
Why use this skill?
Master accessible SVG icons with OpenClaw. Learn about color inheritance, responsive sizing, and performance-first patterns for modern UI development.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/iconsWhat This Skill Does
The Icons skill provides a comprehensive framework for implementing high-performance, accessible, and scalable SVG icons within OpenClaw projects. It moves away from legacy icon fonts in favor of modern SVG standards, ensuring that interfaces are not only visually consistent but also fully compliant with Web Content Accessibility Guidelines (WCAG). By utilizing features like currentColor inheritance, developers can create icons that automatically react to CSS state changes, such as hover, active, and focus, without requiring redundant styling. This skill includes robust guidelines for sizing icons based on specific UI contexts, optimizing touch targets, and managing icon performance through efficient rendering patterns like symbol sprites.
Installation
To integrate the Icons skill into your project, use the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/icons
Ensure that your build pipeline supports SVG optimization to maximize the performance benefits outlined in the documentation.
Use Cases
This skill is ideal for any web-based UI requiring visual iconography. Common use cases include:
- Designing accessible navigation bars where icons act as primary affordances.
- Implementing standard button libraries that require varying sizes (16px to 32px) and adaptive states.
- Managing massive icon libraries in enterprise-grade applications using SVG symbol sprites to reduce initial DOM payload.
- Ensuring consistent brand color application across components using
fillandstrokeinheritance.
Example Prompts
- "OpenClaw, please refactor our existing button component to use accessible SVG icons with
currentColorinheritance instead of the current font-based icons." - "Help me generate an SVG sprite sheet for our navigation menu, ensuring all icons are accessible with proper
aria-hiddenandfocusableattributes." - "What is the best way to scale these 24px utility icons so they remain crisp and readable when the user increases text zoom to 200%?"
Tips & Limitations
- Accessibility First: Always prioritize
aria-hidden="true"for decorative icons to prevent screen readers from announcing unnecessary information. If an icon is the only indicator of an action, ensure anaria-labelor visually hidden text tag is present. - Performance: While inline SVGs are highly performant, for very large sets of icons, utilize the Symbol Sprite pattern provided in this documentation to minimize document node bloat.
- Browser Compatibility: While modern browsers handle inline SVG perfectly, remember that external sprites (
<use href="/file.svg#id"/>) may require a polyfill for older versions of Safari. - CSS Cleanliness: Ensure all hardcoded
fillattributes are removed from your source SVG files, as these will override yourcurrentColorsettings.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-icons": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.