KS
Killer-Skills

svg-icon-pattern — how to use svg-icon-pattern how to use svg-icon-pattern, svg-icon-pattern best practices, svg-icon-pattern alternative, svg-icon-pattern vs icon libraries, svg-icon-pattern install, svg-icon-pattern setup guide, what is svg-icon-pattern, svg-icon-pattern tutorial, svg-icon-pattern for AI agents

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents working with SVG icons in the lib/ui/icons directory, needing standardized icon creation and flexibility. svg-icon-pattern is a set of standards for creating and updating icons in the lib/ui/icons directory, ensuring consistency and flexibility through proper icon component definition and SvgProps implementation.

Features

Exports a named component that receives SvgProps from @lib/ui/props
Spreads SvgProps onto the svg element for consistency
Utilizes the @lib/ui/props library for SvgProps definition
Follows specific standards for icon creation in the lib/ui/icons directory
Ensures flexibility through proper icon component definition
Supports SvgProps implementation for customizable icons

# Core Topics

vultisig vultisig
[13]
[13]
Updated: 2/27/2026

Quality Score

Top 5%
48
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add vultisig/vultisig-windows/svg-icon-pattern

Agent Capability Analysis

The svg-icon-pattern MCP Server by vultisig is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use svg-icon-pattern, svg-icon-pattern best practices, svg-icon-pattern alternative.

Ideal Agent Persona

Perfect for Frontend Agents working with SVG icons in the lib/ui/icons directory, needing standardized icon creation and flexibility.

Core Value

Empowers agents to create consistent and flexible SVG icons by following specific standards, utilizing SvgProps from @lib/ui/props and ensuring compatibility with the lib/ui/icons directory, while supporting protocols like http://www.w3.org/2000/svg.

Capabilities Granted for svg-icon-pattern MCP Server

Standardizing icon creation in the lib/ui/icons directory
Generating consistent SVG icons with SvgProps
Updating existing icons to follow the svg-icon-pattern standards

! Prerequisites & Limits

  • Requires access to the lib/ui/icons directory
  • Specific to SVG icons
  • Must use SvgProps from @lib/ui/props
Project
SKILL.md
2.0 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

SVG Icon Pattern

Instructions

When creating or updating icons in the lib/ui/icons directory, follow these standards to ensure consistency and flexibility.

1. Icon Component Definition

Export a named component that receives SvgProps from @lib/ui/props. Spread these props onto the svg element.

tsx
1// ✅ Good: SvgProps pattern 2import { SvgProps } from '@lib/ui/props' 3 4export const MyIcon = (props: SvgProps) => ( 5 <svg 6 xmlns="http://www.w3.org/2000/svg" 7 width="1em" 8 height="1em" 9 viewBox="0 0 24 24" 10 fill="currentColor" 11 {...props} 12 > 13 <path d="..." /> 14 </svg> 15) 16 17// ❌ Bad: IconWrapper inside icon definition 18export const MyIcon = (props: any) => ( 19 <IconWrapper {...props}> 20 <svg>...</svg> 21 </IconWrapper> 22)

2. Sizing and Dimensions

  • Calculate dimensions based on the viewBox attribute.
  • The largest dimension (width or height) should always be 1em.
  • The smaller dimension should be calculated proportionally: (smaller / larger)em.
  • Neither width nor height should exceed 1em.
tsx
1// Example for non-square icon (viewBox="0 0 22 20") 2// height = 20/22 = 0.909 3<svg width="1em" height="0.909em" viewBox="0 0 22 20" ...>

3. Styling and Colors

  • Use fill="currentColor" or stroke="currentColor" to allow the icon to inherit colors from its parent.
  • For multi-colored icons, use specific colors only where necessary.

4. Usage and Sizing

Size icons at the usage site using the fontSize property within the style prop. This leverages the 1em base size defined in the icon component.

tsx
1// ✅ Good: Direct sizing via style 2<MyIcon style={{ fontSize: 24 }} /> 3 4// ❌ Bad: Using size prop (requires IconWrapper) 5<MyIcon size={24} />

Anti-Patterns to Avoid

  • DO NOT wrap icons with IconWrapper inside the icon component file.
  • DO NOT use hardcoded pixel values for width and height in the svg element.
  • DO NOT use IconWrapper at the usage site if simple fontSize styling is sufficient.

Related Skills

Looking for an alternative to svg-icon-pattern or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication