Skip to main content

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

Release files for cotton-icons 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cotton-icons 0.2.0
File Size Uploaded
cotton_icons-0.2.0.tar.gz 833.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cotton-icons 0.2.0
File Interpreter ABI Platform
cotton_icons-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 MB

Release files / cotton_icons-0.2.0.tar.gz

Download URL cotton_icons-0.2.0.tar.gz
Size 833.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59f5f9945a2e92ad2d9d7578357bba7dee07b1a8a8ed34a8a56e85bb10539f8b
BLAKE2b-256 checksum
How to use checksums
80462b75ee203aac31785d9da42f89fdf4e06c7bd6fe5a6bfa76c66d0a6071eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure

Release files / cotton_icons-0.2.0-py3-none-any.whl

Download URL cotton_icons-0.2.0-py3-none-any.whl
Size 4.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8a06a1b2acba534e08b018b02950c62221a7406cffcafc293ea4ccfa7efa45a0
BLAKE2b-256 checksum
How to use checksums
b92652ef398c64754f2b930019b5e9d8f5d8170c2f21038d5b7507bcd5f1a669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.0 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page