Skip to main content

A Django templatetag library for using hugeicons free stroke icons

Project description

Free package for HugeIcons

Check out all 36,000+ hand drawn icons by visiting the HugeIcons website @ https://hugeicons.com/

Installation

Make sure you have Django installed pip install Django

After you have installed Django you can install the icon package

pip install django-hugeicons-stroke

Add to your installed apps

Add django_hugeicons_stroke under your installed_apps variable in your settings.py file.

INSTALLED_APPS = [
	...
	"django_hugeicons_stroke"
]

Load the template tag per file or globally

If you want to load the icon tag in certain html files just use the following

{% load hugeicons_stroke %}

or load globally by adding to your built-ins in your TEMPLATES variable in your settings.py file.

TEMPLATES = [
    {
		...
        'OPTIONS': {
			...
			'builtins': [
				'django_hugeicons_stroke.templatetags hugeicons_stroke',
            ]
        },
    },
]

Run your server

You're setup and ready to use HugeIcons!

Using the template tag

{% hgi_stroke name="" size="24" color="#000000" stroke_width="2" %}

Parameters

Name Default Value Description
Name Empty String Name of icon you want to get
Size 24 The overall size of the icon width and height
Color #000000 Color text or HEX Code to color the icon
Stroke Width 2 The thickness of the icon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_hugeicons_stroke-1.1.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_hugeicons_stroke-1.1.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file django_hugeicons_stroke-1.1.2.tar.gz.

File metadata

  • Download URL: django_hugeicons_stroke-1.1.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for django_hugeicons_stroke-1.1.2.tar.gz
Algorithm Hash digest
SHA256 af59be539a554599aece45652c4eb27af4bf4b5aead6688c6f15aeb0ceaf0276
MD5 84526a6485412af5276f7bd5ae71c04f
BLAKE2b-256 9ae063dd6b9c2c1ed1595f098aa7aafd4a1e4161030ebb10718cb46f0781119b

See more details on using hashes here.

File details

Details for the file django_hugeicons_stroke-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hugeicons_stroke-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5831a1fbe6e931c2feedb8f89ea66670dd37bdba78f5a171743130e82c9d54be
MD5 f6f8af35d46be7e35d79ec31b67fcd39
BLAKE2b-256 0bcac0a3e2088218816e8645f13e9833404e953d51389b21603f7b175db984ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page