Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

thesvg

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thesvg

3,800+ brand SVG icons - tree-shakeable, typed, dual ESM/CJS. The one-stop brand icon library.

latest
Source
npmnpm
Version
3.0.15
Version published
Weekly downloads
4K
40.46%
Maintainers
1
Weekly downloads
 
Created
Source

theSVG - 6,030+ brand SVG icons

thesvg

3,800+ brand SVG icons for developers. Tree-shakeable, typed, open source.
Browse all icons →

npm version npm downloads license GitHub stars

This is the convenience package for @thesvg/icons. Both packages contain the same 3,800+ icons.

Install

npm install thesvg

Quick Start

import github from "thesvg/github";

github.svg;        // raw SVG string
github.title;      // "GitHub"
github.hex;        // "181717"
github.categories; // ["DevTool", "VCS"]
github.variants;   // { default: "<svg...>", mono: "<svg...>" }

Usage

// Named exports
import { svg, title, hex } from "thesvg/github";

// Barrel import (includes all icons)
import { github, vercel, stripe } from "thesvg";

// React
import { svg } from "thesvg/github";
const Logo = () => <div dangerouslySetInnerHTML={{ __html: svg }} />;

// Variants
import icon from "thesvg/github";
const dark = icon.variants["dark"];

CDN

<img src="https://thesvg.org/icons/github/default.svg" alt="GitHub" width="24" />

Packages

PackageDescription
thesvgConvenience wrapper (this package)
@thesvg/iconsCore icon data
@thesvg/reactTyped React components
@thesvg/cliCLI tool

License

MIT. Icons under their respective upstream licenses.

thesvg.org

Keywords

svg

FAQs

Package last updated on 11 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts