---
name: "heroicons-tailwind-svg-icons"
description: "Integrate official Tailwind Heroicons with micro, outline, and solid component variants."
metadata:
  author: "Tailwind Labs"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "use heroicons in react"
  - "switch outline and solid heroicons"
  - "style heroicons with tailwind"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Heroicons Tailwind SVG Component Optimization

Utilizes @heroicons/react 24/outline, 24/solid, and 20/solid: zero-runtime SVG rendering, currentColor inheritance, accessible aria-hidden tags, and responsive Tailwind styling.

## When to Invoke
Invoke this skill whenever you need to:
- use heroicons in react
- switch outline and solid heroicons
- style heroicons with tailwind

## Execution SOP & Rules
1. Import icons from specific variant subpaths: import { CheckIcon } from '@heroicons/react/24/outline'.
2. Use 24/outline for primary navigation items and 20/solid for compact form inputs and buttons.
3. Apply aria-hidden="true" to decorative icons that accompany visible text labels.
4. Provide an explicit sr-only screen reader label when using icon-only button elements.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
