Skip to main content

Heroicons and Tabler Icons for Django Cotton

Project description

A package to provide popular icon packs for use with Django Cotton. Currently, Heroicons, Tabler Icons, and Lucide Icons are supported.

Supported Icon Libraries

  • Heroicons: v2.2.0
  • Tabler Icons: v3.37.1
  • Lucide Icons: v0.575.0

Install

1. Install from pypi

pip install cotton-icons

2. Install into your django project

# settings.py
INSTALLED_APPS = [
  'cotton_icons'
]

3. Use in template

Library Syntax Variants Default
Heroicons <c-heroicon.icon-name /> outline, solid, mini, micro outline
Tabler <c-tablericon.icon-name /> outline, filled outline
Lucide <c-lucideicon.icon-name /> - -

All attributes pass through to the <svg> tag. For stroke-based icons you can also pass stroke-width, stroke-linecap, and stroke-linejoin.

Examples:

<c-heroicon.chevron-down class="size-5" />
<c-heroicon.chevron-down variant="solid" class="size-5" />
<c-heroicon.chevron-down variant="mini" class="size-5" />

<c-tablericon.graph class="size-5" />
<c-tablericon.graph variant="filled" class="size-5" />

<c-lucideicon.arrow-down class="size-5" />
<c-lucideicon.search class="size-5" stroke-width="3" />

Roadmap

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

cotton_icons-0.2.0.tar.gz (833.2 kB view details)

Uploaded Source

Built Distribution

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

cotton_icons-0.2.0-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file cotton_icons-0.2.0.tar.gz.

File metadata

  • Download URL: cotton_icons-0.2.0.tar.gz
  • Upload date:
  • Size: 833.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure

File hashes

Hashes for cotton_icons-0.2.0.tar.gz
Algorithm Hash digest
SHA256 59f5f9945a2e92ad2d9d7578357bba7dee07b1a8a8ed34a8a56e85bb10539f8b
MD5 40f25dc462a0bed58a9ba9a3f167645c
BLAKE2b-256 80462b75ee203aac31785d9da42f89fdf4e06c7bd6fe5a6bfa76c66d0a6071eb

See more details on using hashes here.

File details

Details for the file cotton_icons-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cotton_icons-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure

File hashes

Hashes for cotton_icons-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a06a1b2acba534e08b018b02950c62221a7406cffcafc293ea4ccfa7efa45a0
MD5 cbe9a8d6b41071a97fb32342b481f733
BLAKE2b-256 b92652ef398c64754f2b930019b5e9d8f5d8170c2f21038d5b7507bcd5f1a669

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