npm.io
3.47.0 • Published 6d ago

@tabler/icons

Licence
MIT
Version
3.47.0
Deps
0
Vulns
0
Weekly
0
Stars
21.7K

Tabler Icons

Tabler Icons

A set of 6202 free, MIT-licensed, high-quality SVG icons for your web projects. Each icon is designed on a 24x24 grid with a 2px stroke.

Browse all icons at tabler.io →

Latest release License

Sponsors

If you want to support our project and help us grow it, you can become a sponsor on GitHub or donate on PayPal.

Tabler sponsors

Installation

npm install @tabler/icons
yarn add @tabler/icons
pnpm add @tabler/icons

You can also download the latest release from GitHub.

Usage

All icons are plain SVG files, so you can use them as an <img> source, as a CSS background-image, or inline in your HTML.

HTML image

When you load an icon as an image, you can control its size with CSS.

<img src="path/to/icon.svg" alt="icon title" />
Inline SVG

Paste the content of the icon file directly into your HTML to render it inline.

<svg
  xmlns="http://www.w3.org/2000/svg"
  class="icon icon-tabler icons-tabler-outline icon-tabler-activity"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
  <path d="M3 12h4l3 8l4 -16l3 8h4" />
</svg>

Inline icons inherit currentColor, so you can change their size, color, and stroke-width with CSS.

.icon-tabler {
  color: red;
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

Package contents

Path Description
icons/outline/*.svg Outline icons
icons/filled/*.svg Filled icons
icons.json Metadata for every icon: name, category, tags, version and unicode code point
categories/outline/<category>/*.svg Outline icons grouped by category
tabler-nodes-outline.json, tabler-nodes-filled.json Icon paths as [tag, attributes] tuples, used to build the framework packages

CDN

All files are available from jsDelivr. Replace latest with a specific version number to pin a release.

<img src="https://cdn.jsdelivr.net/npm/@tabler/icons@latest/icons/outline/home.svg" alt="Home" />
<img src="https://cdn.jsdelivr.net/npm/@tabler/icons@latest/icons/filled/home.svg" alt="Home" />

Contributing

Bug reports and icon requests are welcome in the issue tracker. Caught a mistake in this page? Edit it on GitHub.

License

Tabler Icons is licensed under the MIT License.

Keywords