Easily use Heroicons in your Django templates.
pip install django-heroicons
- In your
settings.py
file, addheroicons
toINSTALLED_APPS
.
Inside your template:
{% load heroicons %}
{% heroicon 'chevron-right' %}
If you want to use the solid icons instead:
{% heroicon 'chevron-right' style="solid" %}
To resize or color the icon, change the size & color of the containing element:
<div style="color: red; width: 24px;">
{% heroicon 'chevron-right' %}
</div>
Thanks to @steveschoger for the awesome icon set!