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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af59be539a554599aece45652c4eb27af4bf4b5aead6688c6f15aeb0ceaf0276
|
|
| MD5 |
84526a6485412af5276f7bd5ae71c04f
|
|
| BLAKE2b-256 |
9ae063dd6b9c2c1ed1595f098aa7aafd4a1e4161030ebb10718cb46f0781119b
|
File details
Details for the file django_hugeicons_stroke-1.1.2-py3-none-any.whl.
File metadata
- Download URL: django_hugeicons_stroke-1.1.2-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5831a1fbe6e931c2feedb8f89ea66670dd37bdba78f5a171743130e82c9d54be
|
|
| MD5 |
f6f8af35d46be7e35d79ec31b67fcd39
|
|
| BLAKE2b-256 |
0bcac0a3e2088218816e8645f13e9833404e953d51389b21603f7b175db984ce
|