Skip to main content

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


Download files

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

Source Distribution

crispy_hummingbird-0.1.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

crispy_hummingbird-0.1.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

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

Hashes for crispy_hummingbird-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f030f42f3216335b964b3d073574b6bbbc3bd86075ea70e80d7dd2041640db2
MD5 27e78844ff6ba19fbaa86247b2acb3ff
BLAKE2b-256 9f61324408228c79c178e95f4758f560b7caad36a18b20914f1d6d95d064fb76

See more details on using hashes here.

Provenance

The following attestation bundles were made for crispy_hummingbird-0.1.0.tar.gz:

Publisher: publish.yml on BenA-SA/crispy-hummingbird

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crispy_hummingbird-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crispy_hummingbird-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4f6dd0266535c924fb545de91a148ee56112d0d7bee82da1690535c366c18b4
MD5 0188ff1eb91ac1c87b4e38e34c715008
BLAKE2b-256 6c7d4c9e32594ae04263a167ffed000b789021f7b5aa31fabea44b49b7399ddd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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