Skip to main content

Jinjalume

Server-rendered Tailwind UI components for Flask, Jinja, and Python web apps.

Jinjalume is an open-source, HTML-first component kit for developers who want reusable UI in Jinja templates without adopting a frontend SPA framework.

Early MVP: the API and visual language will evolve. Feedback and contributions are welcome.

What is included

  • A small Flask extension that makes Jinjalume templates available to your app
  • Reusable Jinja macros for buttons, badges, alerts, cards, inputs, textareas, avatars, spinners, and dialogs
  • Tailwind CSS v4 build setup
  • A working Flask demo
  • Contributor documentation, issue templates, and continuous integration

Quick start

python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"

npm install
npm run build:css
flask --app demo.app run --debug

Open http://127.0.0.1:5000.

Browse the component gallery at https://phcodesage.github.io/jinjalume/.

PyPI release

Releases are published from GitHub Actions when a version tag such as v0.1.0 is pushed. The workflow builds and validates both the source distribution and wheel, then publishes them through PyPI Trusted Publishing.

Before the first release, the project maintainer must add a pending publisher at https://pypi.org/manage/account/publishing/ with:

  • PyPI project name: jinjalume
  • GitHub owner: phcodesage
  • GitHub repository: jinjalume
  • Workflow name: release.yml
  • GitHub environment: pypi

After that one-time setup, create a GitHub release or push a tag:

git tag v0.1.0
git push origin v0.1.0

The first successful publish creates the PyPI project at https://pypi.org/project/jinjalume/.

Use in a Flask app

from flask import Flask

from jinjalume import Jinjalume

app = Flask(__name__)
Jinjalume(app)

Then import a component in a Jinja template:

{% from "jinjalume/components/button.html" import button %}

{{ button("Save changes", variant="primary", type="submit") }}

The extension only registers Jinjalume's templates. Your application remains responsible for building and serving its Tailwind CSS file.

Available components

Import the macros you need from jinjalume/components/:

  • button.html — primary, secondary, and danger actions
  • badge.html — compact status labels
  • alert.html — informational, success, warning, and danger messages
  • card.html — content containers with a caller block
  • input.html and textarea.html — labeled fields with help and error states
  • avatar.html — image or initials avatar
  • spinner.html — accessible loading indicator
  • modal.html — native HTML dialog markup for progressive enhancement

All components are plain Jinja macros. They do not require a JavaScript framework, and interactive behavior can be progressively enhanced with native browser APIs, HTMX, or Alpine.js.

Development

make install
make test
make lint
make css

Run the CSS watcher and Flask in separate terminals while developing:

npm run dev:css
flask --app demo.app run --debug

Read CONTRIBUTING.md before opening a pull request.

Roadmap

  • WTForms helpers and validation states
  • More accessible interactive components using progressive enhancement
  • Optional HTMX and Alpine.js integrations
  • Theme tokens, dark mode, and RTL examples
  • Component documentation site and visual regression tests

License

Jinjalume is available under the MIT License.

Metadata

Release files for jinjalume 0.1.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 jinjalume 0.1.0
File Size Uploaded Provenance Actions
jinjalume-0.1.0.tar.gz 9.5 kB With provenance Details for jinjalume-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jinjalume 0.1.0
File Interpreter ABI Platform Actions
jinjalume-0.1.0-py3-none-any.whl Python 3 none any Details for jinjalume-0.1.0-py3-none-any.whl

Total release size: 19.8 kB

Release files / jinjalume-0.1.0.tar.gz

Download URL jinjalume-0.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
353538dd9095d9761587d1ef30199405f6f062003db978b53544c1e1bcbf2528
BLAKE2b-256 checksum
How to use checksums
cdcab7c67f9173cff57cee64ddd8e172b49fc1cbeb6b484b7f7476b52f7cc074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / jinjalume-0.1.0-py3-none-any.whl

Download URL jinjalume-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b770e783e876d257c6eccdae0321c52c34c41e5e73b8c3e14a6a787e5534b250
BLAKE2b-256 checksum
How to use checksums
9dba79cbcc660623ad482c5dc8fd3288fe8d38759c35d9d6a926ae73524d112f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for jinjalume 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jinjalume-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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