title: Icons summary: Use any of over 5000 icons created specifically for Tabler and make your dashboard look even more attractive. All icons are under MIT license, so you can use them without any problem both in private and commercial projects. banner: icons
If you need to add icons to your website, you can use the Tabler Icons library. It contains over 5000 icons that you can use in your projects. All icons are under the MIT license, so you can use them without any problem both in private and commercial projects.
To add an icon to your code copy the SVG code from the Tabler Icons website and paste it into your HTML file.
{% include "ui/icon.html" icon="heart" %}
Results can be seen in the example below.
{% capture html -%} {% include "ui/icon.html" icon="heart" %} {% include "ui/icon.html" icon="ghost-2" %} {% include "ui/icon.html" icon="lego" %} {% include "ui/icon.html" icon="building-carousel" %} {%- endcapture %} {% include "docs/example.html" html=html %}
To use filled icons, you need to copy the SVG code of the selected filled Icon from the Tabler Icons website and paste it into your HTML file.
{% capture html -%} {% include "ui/icon.html" icon="heart" type="filled" %} {% include "ui/icon.html" icon="bell-ringing" type="filled" %} {% include "ui/icon.html" icon="cherry" type="filled" %} {% include "ui/icon.html" icon="circle-key" type="filled" %} {%- endcapture %} {% include "docs/example.html" html=html %}
To change the color of the icon, you need to add the text-*
class to the parent element of the icon. See the full list of available colors for more details. Color classes can be used with any HTML element.
<span class="text-red">
<!-- Icon code here -->
</span>
Look at the example below to see how the color of the icon changes.
{% capture html -%} {% include "ui/icon.html" icon="heart" type="filled" %} {% include "ui/icon.html" icon="star" type="filled" %} {% include "ui/icon.html" icon="circle" %} {% include "ui/icon.html" icon="square-rounded" %} {%- endcapture %} {% include "docs/example.html" html=html %}
To add an animation to the icon, you need to add the icon-pulse
, icon-tada
, or icon-rotate
class to the SVG element.
{% capture html -%} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-pulse" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tada" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"
<path
d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"
/>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-rotate" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"{%- endcapture %} {% include "docs/example.html" html=html %}