Skip to content

Easily use Heroicons in Django templates

Notifications You must be signed in to change notification settings

gyana/django-heroicons

 
 

Repository files navigation

django-heroicons

Easily use Heroicons in your Django templates.

Installation

  1. pip install django-heroicons
  2. In your settings.py file, add heroicons to INSTALLED_APPS.

Usage

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!

About

Easily use Heroicons in Django templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.9%
  • Shell 8.3%
  • HTML 2.8%