Skip to content

matix-io/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