Hummingbird UI template pack for django-crispy-forms
Project description
crispy-hummingbird
A django-crispy-forms template pack for Hummingbird UI — the Tailwind CSS v4 component system (used by the Falcon-Tailwind theme).
Status: work in progress (v0.1.0). Core form rendering works; full layout-object coverage, regenerated test fixtures, and docs are in progress.
Why
Hummingbird reuses Bootstrap 5's form class names (form-control, form-select, form-label,
form-check, is-invalid, input-group, …), so this pack is a small, faithful adaptation of
crispy-bootstrap5 — it emits the class
names Hummingbird styles, with a handful of Hummingbird-specific divergences (field wrapper
form-field, a form-check-input-wrapper around checkbox/radio inputs, and Hummingbird's
non-responsive col grid).
Installation
pip install crispy-hummingbird # not yet published — install from source for now
Add to your Django settings:
INSTALLED_APPS = [
# ...
"crispy_forms",
"crispy_hummingbird",
]
CRISPY_ALLOWED_TEMPLATE_PACKS = "hummingbird"
CRISPY_TEMPLATE_PACK = "hummingbird"
You also need Hummingbird's CSS in your build (e.g. @import "@hummingbirdui/hummingbird"; in your
Tailwind entry). This pack only emits class names; Hummingbird provides the styling.
Usage
Use django-crispy-forms exactly as normal — {% crispy %}, the |crispy filter, FormHelper, and
Layout objects all work. To opt a single form into Hummingbird while another pack is the project
default:
helper = FormHelper()
helper.template_pack = "hummingbird"
Credits
Forked from crispy-bootstrap5 by
David Smith and the django-crispy-forms team (MIT). See LICENSE.
License
MIT.
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 crispy_hummingbird-0.1.0.tar.gz.
File metadata
- Download URL: crispy_hummingbird-0.1.0.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f030f42f3216335b964b3d073574b6bbbc3bd86075ea70e80d7dd2041640db2
|
|
| MD5 |
27e78844ff6ba19fbaa86247b2acb3ff
|
|
| BLAKE2b-256 |
9f61324408228c79c178e95f4758f560b7caad36a18b20914f1d6d95d064fb76
|
Provenance
The following attestation bundles were made for crispy_hummingbird-0.1.0.tar.gz:
Publisher:
publish.yml on BenA-SA/crispy-hummingbird
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crispy_hummingbird-0.1.0.tar.gz -
Subject digest:
5f030f42f3216335b964b3d073574b6bbbc3bd86075ea70e80d7dd2041640db2 - Sigstore transparency entry: 2167548292
- Sigstore integration time:
-
Permalink:
BenA-SA/crispy-hummingbird@aea3774c1e752854853778236d562038dc187dbb -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/BenA-SA
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aea3774c1e752854853778236d562038dc187dbb -
Trigger Event:
release
-
Statement type:
File details
Details for the file crispy_hummingbird-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crispy_hummingbird-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f6dd0266535c924fb545de91a148ee56112d0d7bee82da1690535c366c18b4
|
|
| MD5 |
0188ff1eb91ac1c87b4e38e34c715008
|
|
| BLAKE2b-256 |
6c7d4c9e32594ae04263a167ffed000b789021f7b5aa31fabea44b49b7399ddd
|
Provenance
The following attestation bundles were made for crispy_hummingbird-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on BenA-SA/crispy-hummingbird
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crispy_hummingbird-0.1.0-py3-none-any.whl -
Subject digest:
a4f6dd0266535c924fb545de91a148ee56112d0d7bee82da1690535c366c18b4 - Sigstore transparency entry: 2167548301
- Sigstore integration time:
-
Permalink:
BenA-SA/crispy-hummingbird@aea3774c1e752854853778236d562038dc187dbb -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/BenA-SA
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aea3774c1e752854853778236d562038dc187dbb -
Trigger Event:
release
-
Statement type: