Skip to main content

A Design System for Django

Project description

dj-design-system

CI PyPI version Python versions Django License: MIT

DjDS is a Django-native approach to writing front end components that are exposed as templatetags. It comes with an auto-generated, customisable, live interactive gallery of your UI components that lives alongside your Django project.

Components are recognisably Django elements; they look and work like Models or Forms. The gallery auto-discovers them, renders live previews in sandboxed iframes, generates templatetag usage examples, and builds a searchable navigation tree — all from your existing code and docstrings.

Browse the demo →

Read the docs →.

Quick start

pip install dj-design-system

Then follow the quickstart guide to register your first component.

Supported versions

Python Django
3.13 5.2 (LTS)
3.14 6.0
latest

Documentation

Full documentation is available at fukalite.github.io/dj-design-system/.

To browse locally:

just docs-serve
Document Contents
Quick start Installation and first component
Components Defining components and parameters
Registry Auto-discovery and the component registry
Gallery Configuring and customising the gallery
Template tags Using components in templates
API reference Auto-generated class and parameter docs

A static snapshot of the component gallery is browseable at fukalite.github.io/dj-design-system/demo/ (HTMX interactions disabled; run just demo for the full live experience).

Contributing

See CONTRIBUTING.md for how to set up a dev environment, run tests, and submit a pull request.

Code of conduct

This project follows the Contributor Covenant. Please read CODE_OF_CONDUCT.md before contributing.

Issues and feature requests

Please open an issue on GitHub. Use the bug report template for defects and the feature request template for new ideas.

Security

To report a vulnerability privately, see SECURITY.md.

Licence

MIT

With thanks to the UK Department for Business and Trade, where this was originally developed.

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

dj_design_system-0.4.1.tar.gz (314.0 kB view details)

Uploaded Source

Built Distribution

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

dj_design_system-0.4.1-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

Details for the file dj_design_system-0.4.1.tar.gz.

File metadata

  • Download URL: dj_design_system-0.4.1.tar.gz
  • Upload date:
  • Size: 314.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dj_design_system-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cd423ee2c4fff777a394584c56609e8cffb301ada858fcbbef6107c96a974242
MD5 f09e26289df9fdcf1864eea4e7adfe4e
BLAKE2b-256 bd05b4f4d511982daa7712b830f026cac5bcc57e13ea5352a37b7bf5afa65bdd

See more details on using hashes here.

File details

Details for the file dj_design_system-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dj_design_system-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dj_design_system-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d59ece0dacf8b10a88f548852a5a81a1d9bb45b86b124ecb929713c1acb6f1b2
MD5 a50ded5f9aa5c99e0f9dbe1b8e9d2d03
BLAKE2b-256 93e8c5bebdc4f50b203f1b6dbd984ed11522b33f66b776c13258fd6b4adc610c

See more details on using hashes here.

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