Skip to main content

Insight UI

The Modern Django Component Framework with built-in Accessibility

65+ UI components designed with WCAG 2.2 AA as an accessibility target
HTMX-powered · Tailwind-based · RTL & i18n ready


Live Demo · Get Started · Components


PyPI Python Django License: AGPL-3.0


Insight UI is a reusable Django component library that provides production-ready UI building blocks. Components are implemented as Django template tags with typed configuration dataclasses, styled with Tailwind CSS, and enhanced with HTMX for interactivity — no JavaScript framework required.

Features

  • Accessibility-focused — Keyboard, focus and ARIA behavior in navigation, forms, tables and modals
  • HTMX integration — Partial updates without full page reloads
  • Tailwind design system — Customizable semantic tokens for fast brand alignment
  • RTL & i18n ready — Right-to-left layouts and localization included
  • Light & dark themes — Automatic theme switching with CSS custom properties

WCAG 2.2 AA is a design target, not a verified package-wide conformance claim. Conformance must be assessed for complete pages and processes in the consuming application. See Accessibility for scope and limitations.

Quick Start

Install the package:

uv add insight-ui

Add to your Django settings:

INSTALLED_APPS = [
    # Your apps...
    "django.contrib.staticfiles",
    "insight_ui",
]

TEMPLATES = [
    {
        # ...
        "OPTIONS": {
            "context_processors": [
                # ...
                "insight_ui.context_processors.insight_ui_context",
            ],
        },
    },
]

Use components in your templates:

{% extends "insight_ui/base.html" %}
{% load insight_tags %}

{% block title %}My application{% endblock %}

{% block content %}
    {% button label="Get started" type="primary" %}
    {% card title="Welcome" subtitle="Your first card" content="Card content goes here." %}
    {% alert type="success" message="Component rendered successfully." %}
{% endblock %}

See Getting Started for complete setup including static assets.

Documentation

Guide Description
Getting Started Installation and configuration
Components Template tag API and patterns
Design System Tokens, theming, and customization
Static Assets Staticfiles and CDN configuration
Accessibility WCAG compliance guidelines
Internationalization i18n and RTL support

Full component reference and live examples at insight-ui.com.

Contributing

git clone https://github.com/alpininsight/insight-ui.git
cd insight-ui
uv sync --all-groups
npm ci
npm run build:static-all
uv run pytest

The devtools app provides a local playground for component development:

uv run python manage.py runserver 127.0.0.1:8000

Edit devtools/views.py for Configs and devtools/templates/devtools/playground.html for their template tags, then open http://127.0.0.1:8000/.

To scaffold a new component:

uv run python manage.py create_component --name "My Widget" --category input --no-js --dry-run

See CONTRIBUTING.md for the full workflow.

Package Scope

This repository contains the insight_ui Python package. The documentation website, component catalog, and examples are maintained in a separate repository. The local devtools playground and contributor guides stay in the Git checkout, not the wheel or sdist. Contributors need no private repository or credentials.

License

GNU Affero General Public License v3.0. For commercial licensing see COMMERCIAL_LICENSE.md.

Licensing metadata follows REUSE. Third-party notices are in NOTICE and insight_ui/THIRD_PARTY_NOTICES.md.

Metadata

Release files for insight-ui 1.15.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 insight-ui 1.15.0
File Size Uploaded
insight_ui-1.15.0.tar.gz 686.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for insight-ui 1.15.0
File Interpreter ABI Platform
insight_ui-1.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / insight_ui-1.15.0.tar.gz

Download URL insight_ui-1.15.0.tar.gz
Size 686.4 kB
Tags Source
SHA-256 checksum
How to use checksums
35022e92c7433a7bc2d7819829301e12b7adc5fe71270ce1834ae7b6b0e2e068
BLAKE2b-256 checksum
How to use checksums
e52d0236ef2ff7638f27cffc1c9e9d8e0341142a717f72246c9790eefc87d4b7
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 21, 2026.

Transparency log

Release files / insight_ui-1.15.0-py3-none-any.whl

Download URL insight_ui-1.15.0-py3-none-any.whl
Size 610.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04b51f261c9acd720127fb03309f6753bcbe85f3c7451a84150ba79cca28a0cf
BLAKE2b-256 checksum
How to use checksums
b8fdf36aee5fc152d59a870a1c0d97a62e8f69e2baa9017d962af8034f761b54
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 21, 2026.

Transparency log

Release history Release notifications | RSS feed

1.15.1

2 release files

This release

1.15.0 This release

2 release files

1.14.0

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