Giter Site home page Giter Site logo

tabler / tabler-icons Goto Github PK

View Code? Open in Web Editor NEW
17.3K 105.0 852.0 1.08 GB

A set of over 5200 free MIT-licensed high-quality SVG icons for you to use in your web projects.

Home Page: https://tabler.io/icons

License: MIT License

HTML 6.42% CSS 4.14% JavaScript 56.98% SCSS 7.73% Python 0.26% Svelte 0.97% TypeScript 17.56% Vue 0.31% Liquid 5.63%
icons iconset svg-icons svg icons-pack bootstrap-icons css icon-pack tabler-icons quality-svg-icons

tabler-icons's Introduction

Tabler Icons

A set of 5237 free MIT-licensed high-quality SVG icons for you to use in your web projects. Each icon is designed on a 24x24 grid and a 2px stroke.

Browse at tabler-icons.io →

Sponsors

If you want to support my project and help me grow it, you can become a sponsor on GitHub or just donate on PayPal :)

Preview

Outline version (4577 icons)

Tabler Icons preview

Filled version (660 icons)

Tabler Icons preview

Installation

npm install @tabler/icons --save

or just download from GitHub.

Usage

All icons are built with SVG, so you can place them as <img>, background-image and inline in HTML code.

HTML image

If you load an icon as an image, you can modify its size using CSS.

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

Inline HTML

You can paste the content of the icon file into your HTML code to display it on the page.

<a href="">
  <svg
    xmlns="http://www.w3.org/2000/svg"
    class="icon icon-tabler icon-tabler-disabled"
    width="24"
    height="24"
    viewBox="0 0 24 24"
    stroke-width="1.25"
    stroke="currentColor"
    fill="none"
    stroke-linecap="round"
    stroke-linejoin="round"
  >
    ...
  </svg>
  Click me
</a>

Thanks to that, you can change the size, color and the stroke-width of the icons with CSS code.

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

SVG sprite

Add an icon to be displayed on your page with the following markup (activity in the above example can be replaced with any valid icon name):

<svg width="24" height="24">
  <use xlink:href="path/to/tabler-sprite.svg#tabler-activity" />
</svg>

React

React components available through @tabler/icons-react package.

import { IconAward } from '@tabler/icons-react';

const MyComponent = () => {
  return <IconAward
    size={36} // set custom `width` and `height`
    color="red" // set `stroke` color
    stroke={3}  // set `stroke-width`
    strokeLinejoin="miter" // override other SVG props
  />
}

@tabler/icons-react exports its own type declarations for usage with React and Typescript.

For more details, see the documentation.

Vue

Vue components available through @tabler/icons-vue package.

<template>
  <!-- basic usage -->
  <IconHome />

  <!-- set `stroke` color -->
  <IconHome color="red"/>
  <IconHome stroke="red"/>

  <!-- set custom `width` and `height` -->
  <IconHome size="36"/>

  <!-- set `stroke-width` -->
  <IconHome strokeWidth="2"/>
  <IconHome stroke-width="2"/>
</template>

<script>
// Returns Vue component
import { IconHome } from '@tabler/icons-vue';

export default {
  components: { IconHome }
};
</script>

or with <script setup>

<script setup>
// Import Vue component
import { IconHome } from '@tabler/icons-vue';
</script>

<template>
  <IconHome color="red" size="36" strokeWidth="2"/>
</template>

For more details, see the documentation.

Angular

Angular components available through angular-tabler-icons package. Install the package, then create icons module:

import { NgModule } from '@angular/core';

import { TablerIconsModule } from 'angular-tabler-icons';
import { IconCamera, IconHeart, IconBrandGithub } from 'angular-tabler-icons/icons';

// Select some icons (use an object, not an array)
const icons = {
  IconCamera,
  IconHeart,
  IconBrandGithub
};

@NgModule({
  imports: [
    TablerIconsModule.pick(icons)
  ],
  exports: [
    TablerIconsModule
  ]
})
export class IconsModule { }

After importing the IconsModule in your feature or shared module, use the icons as follows:

<i-tabler name="camera"></i-tabler>
<i-tabler name="heart" style="color: red;"></i-tabler>
<i-tabler name="brand-github" class="someclass"></i-tabler>

angular-tabler-icons exports its own type declarations for usage with Typescript.

For more usage documentation refer to the official documentation.

Svelte

Svelte components available through @tabler/icons-svelte package.

<script lang="ts">
  import { IconHeart } from '@tabler/icons-svelte';
</script>

<main>
  <IconHeart size={48} stroke={1} />
  <IconHeart size="32" stroke="1.5" />
  <IconHeart color="crimson" class="p-1" size="96" stroke="2" />
</main>

CDN

All files included in @tabler/icons npm package are available over a CDN.

React icons

<script src="https://cdn.jsdelivr.net/npm/@tabler/icons@latest/icons-react/dist/index.umd.min.js"></script>

Iconfont

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css">

To load a specific version replace latest with the desired version number.

<script src="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/icons-react/dist/index.umd.min.js"></script>
HTML
<i class="ti ti-brand-tabler"></i>
CSS
content: 'ec8f';

Compiling fonts

To compile fonts first install fontforge.

When compiling the font it will look for a json file compile-options.json in root folder (same folder as the package.json) In this file you can define extra options:

The default settings if you have not defined the file will be:

{
  "includeIcons": [],
  "fontForge": "fontforge",
  "strokeWidth": null
}

The fontforge executable needs to be in the path or you can set the path to the downloaded fontforge executable in the configuration file. If you installed in on a mac in your application directory it will be /Applications/FontForge.app/Contents/MacOS/FontForge. You can set this value in the compile-options.json file.

{
  "fontForge": "/Applications/FontForge.app/Contents/MacOS/FontForge"
}

To compile the fonts run:

npm run build-iconfont

By default the stroke width is 2. You can change the stroke width in the compile-options.json

{
  "strokeWidth": 1.5,
}

To reduce the font file size you can choose to compile a sub set of icons. When you leave the array empty it will compile all the fonts. To compile only two icons you can set for example the following option in the compile-options.json:

{
  "includeIcons": ["alert-octagon", "alert-triangle"]
}

Optional property includeCategories - an array or string of icon categories to include, category names are case-insensitive.

{
  "includeCategories": ["Devices", "System"]
}

or

{
  "includeCategories": "Devices System"
}

Optional property excludeIcons - an array of icon names using to exclude some category icons:

{
  "includeCategories": ["system"],
  "excludeIcons": ["adjustments"]
}

Complex solution:

{
  "includeIcons": ["alert-octagon", "alert-triangle"],
  "includeCategories": ["devices", "system"],
  "excludeIcons": ["adjustments"]
}

Jetpack Compose

For Android or Desktop you can use compose-icons to use icons in your projects. (see docs)

Multiple strokes

All icons in this repository have been created with the value of the stroke-width property, so if you change the value, you can get different icon variants that will fit in well with your design.

Tabler Icons preview

License

Tabler Icons is licensed under the MIT License.

Sponsor Tabler

Sponsor Tabler

tabler-icons's People

Contributors

0xflotus avatar adambrgmn avatar alex-oleshkevich avatar alvvaro avatar bg-software-bg avatar codecalm avatar colincampbell avatar czuli avatar dependabot[bot] avatar fhfuih avatar freexd avatar haines avatar justvanrossum avatar kicaj avatar koute avatar loics2 avatar lucasabato avatar martynaaj avatar mikouaji avatar mramericanmike avatar narcha avatar pierreavn avatar sevichecc avatar shahriarkh avatar shardwolfdotnet avatar spilymp avatar squishyu avatar syntaxjoker avatar tijmenvangulik avatar wintersilence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabler-icons's Issues

trees

May I humbly suggest that these do not look like trees? I thought these were ice cream bars and wondered who'd need such a specific icon).

image

Thank you!

These are some really really nice icons!

Thanks for open sourcing them and licensing them so liberally. ^>^

Icon request: Stars filled to 25, 50, 75, 100%

Could you please add four new icons for stars that are filled up to various points?

Example: (hollow star already exists)
image

This would allow making a rating component with half-stars.

Thanks for the awesome icon pack!

wrong pixel size in fonticon

I tried tabler-icons in my C++/Qt app as a replacement for FontAwesome and I noticed that I have to set font.pixelSize=46 to get 36px size. in FA font.pixelSize=36 gives proper 36px icons

Typo In Skyscraper

The svg for the skyscraper icon is building-skyscrapper.svg instead of building-skyscraper.svg

Save icon?

I couldn't find an icon for a save button, you know, that floppy disk icon.

I believe this is rather essential and it would be great if you could add it :D

file-upload icon

Hi,
there is a file-download icon but no file-upload one.
Thanks.

Building and places types icons

Religous
Church
Synagogue
Mosque
Temple
Monastery

Historical:
Palace
Castle
Mansion
Column
Monument
Historical place

Public utility:
Government building
Educational building (schools, universities, etc.)
Cultural building (museum, theater, opera house)
Park
Square
Stadium / Entertainment hall
Cemetery
Hospital
Zoo
Racing Track
Market

Infrastructure:
Bridge
Station (bus or train for example)
Seaport
Airport
Dam
Street

Military
Tower
Fortification building
Wall

Residential:
Tenement house
House

Natural:
Mountain
Natural monument
Waterfall
National Park
Lake
River

Other:
Skyscraper
Hotel

Incorrect view in in vector editing programs

As a designer, I intend to use the icons as I quite like the style. But they are inaccurately rendered in pretty much any software I opened them with (Adobe Illustrator, Sketch, even IconJar).

Filled Variations

Multiple Strokes feature is awesome. My suggestion is to also add a filled icon option, to cover a wider range of usages.
Examples taken from Ionic
Screenshot from 2020-05-14 19-21-48Screenshot from 2020-05-14 19-21-53

Icon request: filled star & closed eye

These two icons seem important to me, because we already have star icon which I mainly use as "favorite" action - so filled star icon would resemble when item is favorited.

Second one is closed eye I planned to use on "password fields" for a user to toggle if password is visible or not while typing.

Icon request: 2 new arrows

Can you please add "arrow-bar-top" and "arrow-bar-bottom" to the set for symmetry? You already have "arrow-bar-down" and "arrow-bar-up" which are great. Illustrated suggestion below.

Screen Shot 2020-08-22 at 2 31 31 PM

Github page to search for icons

Would be great if a github page with search could be added so one can search the icons without having to download all the ruby prerequisites.

Request change case

Perhaps like this
image

<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-case" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <rect x="0" y="0" width="24" height="24" stroke="none"></rect>
  <circle cx="6" cy="6.5" r="3.5" />
  <line x1="9.5" y1="6" x2="10" y2="10" />
  <line x1="1" y1="23" x2="23" y2="1" />
  <polyline points="12 22 17 12 22 22" />
  <line x1="14" y1="19" x2="20" y2="19" />
</svg>

Explicit UI to set color as “currentColor” on website

It would be ideal if you could set the copied icon color to currentColor. This is an ideal default, since it then inherits the color from its context in a page. Some UI tweaks that would accomplish this:

  • adding an “x” button to the color field that clears it, setting the icons to currentColor and showing a placeholder in the field of currentColor or maybe inherit
  • making the “reset” button clear the color field
  • adding an “inherit” button to the color bar

I had also thought of some UI tweaks that would help communicate what emptying out the color field does:

  • making the default icon color a less neutral color (perhaps purple, to match the button?)
  • making the icon labels bold, so you can see that the icon color matches when it’s set to currentColor.

Request: More brand icons

Few more suggestions:

  • YouTube
  • Twitch
  • Firefox
  • Tumblr
  • DeviantArt
  • Reddit
  • SoundCloud
  • LinkedIn
  • Microsoft
  • Windows
  • WhatsApp
    • See Issue #47
  • Steam
    • See Issue #33
  • Messenger
    • See Issue #53
  • Mozilla
  • Edge
  • Internet Explorer
  • Discord

Issues that are related:

Game icon

I can see you have a dice there to symbolise Gaming, but i suggest a more common icon (or more variations) to include. A better aproach would be game controllers (joysticks) or the like.
Example:
Screenshot from 2020-05-14 19-15-28
(taken from Ionic)

stroke-width ignored

Hi,

thanks for your beautiful work! I'm having a hard time with stroke-width:

html:

<svg class="tabler-icon">
	<use xlink:href="../../icons/tabler-sprite.svg#tabler-circle-x" />
</svg>

and css:

.tabler-icon {
    height: 32px;
    width: 32px;
    color: #b31b1b;
    stroke-width: 0.85;
}

The size and color attributes are taken into account but not stroke-width. Any idea why?

Database Icons

Fantastic work so far!

Would love to see a set of database icons:

Database Objects

  • Database
  • Table
  • View
  • Query
  • Key
  • Index
  • Stored Procedure
  • Function
  • Schema
  • User, Group, Role
  • CSV file
  • Log, Log File\table

Database Actions

  • Insert into Table
  • Delete from Table
  • Update Table
  • Take table offline/bring table online
  • Export Data
  • Import Data
  • Run Query
  • Run Stored Procedure
  • Grant/revoke Permissions
  • Replication

Smartphone vibrating

First thank you for all those SVGs!
I'd love to see an icon for smartphone vibrating. Thanks again.

Icon for Steam

Awesome work!

The pack has many social media icons but one for Steam is missing. I think it would be a nice addition.

Importing svg icons into sketch goes wrong

I imported all icons into sketch, and most of them don't have any issues.

Brands

  • Github
  • Google
  • Sketch

Border

  • bottom
  • vertical
  • horizontal
  • inner
  • left
  • none
  • outer
  • radius
  • top
  • right

Sketch imported SVG's
image

Sketch imported PNG's
image

[Request] Icon representing counting or a specific count of X

An icon that represents counting up or down or the number/count of something would be a good addition to the existing catalogue of icons.
I suggest as an icon tally marks with four vertical strokes and one diagonal stroke. These are quite easy to create and represent counting in many parts of the world.

Add transport control icons

Pretty standard emojis/icons used in many things.

  • 🔀 Shuffle Tracks Button
  • 🔁 Repeat Button
  • 🔂 Repeat Single Button
  • ▶ Play Button
  • ⏩ Fast-Forward Button
  • ⏭ Next Track Button
  • ⏯ Play or Pause Button
  • ◀ Reverse Button
  • ⏪ Fast Reverse Button
  • ⏮ Last Track Button
  • 🔼 Upwards Button
  • ⏫ Fast Up Button
  • 🔽 Downwards Button
  • ⏬ Fast Down Button
  • ⏸ Pause Button
  • ⏹ Stop Button
  • ⏺ Record Button
  • ⏏ Eject Button

Could not find icon as per example

I tried to use

<svg
xmlns="
http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-disabled"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.25"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"

...
Click me

and i get below as output

image

Below works perfectly, but could not set the stroke width

[Icon Request] Rocket Icon

It would be nice if there was a rocket icon. I like to use a rocket to signify that a button will launch something or falls into a game category.
Maybe something that looked like this.
Image of Yaktocat

Website for download

Do you have any plan for creating a website for this package and adding ability to download single icon and etc? @codecalm

Social media icons

It will be nice to have icons like:

  • Facebook
  • Twitter
  • Linkedin
  • Youtube
  • Instagram
  • Pinterest
  • Snapchat
  • Reddit

Text editor icons.

Hi Pawel,
first thanks for your work, it is just amazing!

My 50c:
It might be a good idea to have rich text editor icons in this pack.
Some icons may be:

  • bold
  • italic
  • underline
  • link/unlink
  • strikethrough
  • embed image
  • embed video
  • embed object
  • iframe
  • ordered list
  • unordered list
  • quote
  • separator (horizontal line)
  • align left/middle/right/justify
  • insert table/row/column
  • go fullscreen
  • text color
  • background color
  • undo/redo

Icon request: LinkedIn

Using this icon set for my resume, a LinkedIn icon would be great! Thanks for an amazing set of icons

Can user upload their own SVG?

Not everyone has a GitHub account - and not everyone wants one. If they want to upload a good SVG picture, they'll have to create a Pull Request. So I suggest that there should be somewhere inside the website to upload images. Maybe you can use a database to store all the files? That'll be easier to add new files and also easier for others to implement this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.