# tailwindlabs/heroicons architecture

> Architecture diagram of the GitHub repository tailwindlabs/heroicons, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tailwindlabs/heroicons
- Repository: https://github.com/tailwindlabs/heroicons

## Overview

Heroicons is a library of hand-crafted SVG icons offered as copyable SVGs and as React and Vue components. The main user workflow is choosing an icon in a supported size/style set, then either copying its SVG or importing its framework component for rendering and styling. The README documents these capabilities, while the tree identifies the icon source sets and framework package directories. Framework component internals are generated and not shown in the sampled excerpts, so their links to the icon sets reflect documented usage rather than inspected implementation details.

Main entry points: [`src/16/solid`](https://github.com/tailwindlabs/heroicons/tree/master/src/16/solid) (16px solid icons), [`src/20/solid`](https://github.com/tailwindlabs/heroicons/tree/master/src/20/solid) (20px solid icons), [`src/24/solid`](https://github.com/tailwindlabs/heroicons/tree/master/src/24/solid) (24px solid icons), [`src/24/outline`](https://github.com/tailwindlabs/heroicons/tree/master/src/24/outline) (24px outline icons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_svg["SVG icon sets"]
  node_icons16["16px solid icons"]
  node_icons20["20px solid icons"]
  node_icons24solid["24px solid icons"]
  node_icons24outline["24px outline icons"]
end

subgraph group_react["React package"]
  node_react16["React 16px solid"]
  node_react20["React 20px solid"]
  node_react24solid["React 24px solid"]
  node_react24outline["React 24px outline"]
end

subgraph group_vue["Vue package"]
  node_vue16["Vue 16px solid"]
  node_vue20["Vue 20px solid"]
  node_vue24solid["Vue 24px solid"]
  node_vue24outline["Vue 24px outline"]
end

node_user(("UI developer"))

node_user -->|"copies SVG"| node_icons16
node_user -->|"copies SVG"| node_icons20
node_user -->|"copies SVG"| node_icons24solid
node_user -->|"copies SVG"| node_icons24outline
node_user -->|"imports component"| node_react16
node_user -->|"imports component"| node_react20
node_user -->|"imports component"| node_react24solid
node_user -->|"imports component"| node_react24outline
node_user -->|"imports component"| node_vue16
node_user -->|"imports component"| node_vue20
node_user -->|"imports component"| node_vue24solid
node_user -->|"imports component"| node_vue24outline

click node_icons16 "https://github.com/tailwindlabs/heroicons/tree/master/src/16/solid"
click node_icons20 "https://github.com/tailwindlabs/heroicons/tree/master/src/20/solid"
click node_icons24solid "https://github.com/tailwindlabs/heroicons/tree/master/src/24/solid"
click node_icons24outline "https://github.com/tailwindlabs/heroicons/tree/master/src/24/outline"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_icons16,node_icons20,node_icons24solid,node_icons24outline,node_user toneBlue
class node_react16,node_react20,node_react24solid,node_react24outline toneAmber
class node_vue16,node_vue20,node_vue24solid,node_vue24outline toneMint
```

## Components

### SVG icon sets

- [16px solid icons](https://github.com/tailwindlabs/heroicons/tree/master/src/16/solid): `src/16/solid`
- [20px solid icons](https://github.com/tailwindlabs/heroicons/tree/master/src/20/solid): `src/20/solid`
- [24px solid icons](https://github.com/tailwindlabs/heroicons/tree/master/src/24/solid): `src/24/solid`
- [24px outline icons](https://github.com/tailwindlabs/heroicons/tree/master/src/24/outline): `src/24/outline`

### React package

- **React 16px solid**
- **React 20px solid**
- **React 24px solid**
- **React 24px outline**

### Vue package

- **Vue 16px solid**
- **Vue 20px solid**
- **Vue 24px solid**
- **Vue 24px outline**

### Other components

- **UI developer**

## Connections

- UI developer → 16px solid icons: copies SVG (evidence: `README.md`)
- UI developer → 20px solid icons: copies SVG (evidence: `README.md`)
- UI developer → 24px solid icons: copies SVG (evidence: `README.md`)
- UI developer → 24px outline icons: copies SVG (evidence: `README.md`)
- UI developer → React 16px solid: imports component (evidence: `README.md`)
- UI developer → React 20px solid: imports component (evidence: `README.md`)
- UI developer → React 24px solid: imports component (evidence: `README.md`)
- UI developer → React 24px outline: imports component (evidence: `README.md`)
- UI developer → Vue 16px solid: imports component (evidence: `README.md`)
- UI developer → Vue 20px solid: imports component (evidence: `README.md`)
- UI developer → Vue 24px solid: imports component (evidence: `README.md`)
- UI developer → Vue 24px outline: imports component (evidence: `README.md`)
