# devicons/devicon architecture

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

- Interactive diagram: https://gitdiagram.com/devicons/devicon
- Repository: https://github.com/devicons/devicon

## Overview

Devicon is an icon collection for programming languages and developer tools. Users find an icon in the catalog and use it through the generated font/CSS package, a raw SVG, or the website; the README documents these usage paths. The repository’s main product is the icon assets and their metadata, alongside the website and font/CSS artifacts. The sampled source only shows CSS generation from devicon.json, so other links are limited to README-documented relationships; build tooling is omitted as delivery machinery.

Main entry points: [`fonts`](https://github.com/devicons/devicon/tree/master/fonts) (Icon font), [`gulpfile.js`](https://github.com/devicons/devicon/blob/master/gulpfile.js) (CSS generation), [`docs/index.html`](https://github.com/devicons/devicon/blob/master/docs/index.html) (Browse icons), [`icons`](https://github.com/devicons/devicon/tree/master/icons) (Raw SVG use)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Icon catalog"]
  node_assets["Icon artwork"]
  node_metadata["Icon metadata<br/>[devicon.json]"]
end

subgraph group_distribution["Usage formats"]
  node_font["Icon font"]
  node_basecss["Base CSS<br/>[devicon-base.css]"]
  node_cssgen["CSS generation<br/>[gulpfile.js]"]
  node_csspackage["Font CSS package"]
  node_svguse["Raw SVG use"]
  node_npm["npm package<br/>[package.json]"]
end

subgraph group_web["Catalog website"]
  node_browse["Browse icons<br/>[index.html]"]
  node_website["Devicon site"]
end

node_user(("Developer"))

node_user -->|"browses"| node_browse
node_browse -->|"opens"| node_website
node_user -->|"uses directly"| node_svguse
node_user -->|"installs"| node_npm
node_metadata -->|"drives generation"| node_cssgen
node_cssgen -->|"generates"| node_csspackage
node_basecss -->|"styles font classes"| node_csspackage
node_font -.->|"provides glyphs"| node_csspackage
node_user -->|"uses via CSS"| node_font
node_assets -->|"supplies SVGs"| node_svguse

click node_browse "https://github.com/devicons/devicon/blob/master/docs/index.html"
click node_website "https://github.com/devicons/devicon/tree/master/docs"
click node_assets "https://github.com/devicons/devicon/tree/master/icons"
click node_metadata "https://github.com/devicons/devicon/blob/master/devicon.json"
click node_font "https://github.com/devicons/devicon/tree/master/fonts"
click node_basecss "https://github.com/devicons/devicon/blob/master/devicon-base.css"
click node_cssgen "https://github.com/devicons/devicon/blob/master/gulpfile.js"
click node_svguse "https://github.com/devicons/devicon/tree/master/icons"
click node_npm "https://github.com/devicons/devicon/blob/master/package.json"

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_assets,node_metadata toneBlue
class node_font,node_basecss,node_cssgen,node_csspackage,node_svguse,node_npm toneAmber
class node_browse,node_website toneMint
class node_user toneIndigo
```

## Components

### Icon catalog

- [Icon artwork](https://github.com/devicons/devicon/tree/master/icons): `icons`
- [Icon metadata](https://github.com/devicons/devicon/blob/master/devicon.json): `devicon.json`

### Usage formats

- [Icon font](https://github.com/devicons/devicon/tree/master/fonts): `fonts`
- [Base CSS](https://github.com/devicons/devicon/blob/master/devicon-base.css): `devicon-base.css`
- [CSS generation](https://github.com/devicons/devicon/blob/master/gulpfile.js): `gulpfile.js`
- **Font CSS package**
- [Raw SVG use](https://github.com/devicons/devicon/tree/master/icons): `icons`
- [npm package](https://github.com/devicons/devicon/blob/master/package.json): `package.json`

### Catalog website

- [Browse icons](https://github.com/devicons/devicon/blob/master/docs/index.html): `docs/index.html`
- [Devicon site](https://github.com/devicons/devicon/tree/master/docs): `docs`

### Other components

- **Developer**

## Connections

- Developer → Browse icons: browses (evidence: `README.md`)
- Browse icons → Devicon site: opens (evidence: `README.md`)
- Developer → Raw SVG use: uses directly (evidence: `README.md`)
- Developer → npm package: installs (evidence: `README.md`)
- Icon metadata → CSS generation: drives generation (evidence: `gulpfile.js`)
- CSS generation → Font CSS package: generates (evidence: `gulpfile.js`)
- Base CSS → Font CSS package: styles font classes
- Icon font → Font CSS package: provides glyphs
- Developer → Icon font: uses via CSS (evidence: `README.md`)
- Icon artwork → Raw SVG use: supplies SVGs (evidence: `README.md`)
