Skip to main content

Ready-made Basecoat components (shadcn/ui) for Django, powered by django-cotton

Project description

CI/CD GitHub release (latest by date) PyPI version Python Versions Code style: ruff Type checked with mypy Security: bandit License: MIT

django-basecoat

Ready-made Basecoat components (shadcn/ui) for Django, powered by django-cotton.

Installation

uv add django-cotton django-basecoat

Add django_basecoat and django_cotton to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "django_cotton",
    "django_basecoat",
    ...
]

Quick Start

Include the required CSS and JS in your base template (or use your own setup):

<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/basecoat-css@0.3.6/dist/basecoat.cdn.min.css">
<script src="https://cdn.jsdelivr.net/npm/basecoat-css@0.3.6/dist/js/all.min.js" defer></script>

Use components in your templates:

<c-button>Click me</c-button>
<c-card>
    <c-card.header>Card Title</c-card.header>
    <c-card.section>Card content goes here</c-card.section>
</c-card>

Available components include: accordion, alert, avatar, badge, breadcrumb, button, card, checkbox, dialog, dropdown menu, input, select, table, tabs, and more.

Documentation

Demo Project

Want to see django-basecoat in action? Check out the demo_project directory for a complete Django application showcasing all available components.

To run the demo:

cd demo_project
./quickstart.sh
# or: make setup && make run

Then visit http://127.0.0.1:8000/ to see the component library in action!

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

django_basecoat-0.2.0.tar.gz (88.4 kB view details)

Uploaded Source

Built Distribution

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

django_basecoat-0.2.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file django_basecoat-0.2.0.tar.gz.

File metadata

  • Download URL: django_basecoat-0.2.0.tar.gz
  • Upload date:
  • Size: 88.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_basecoat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0e17ea64274db6df59c11b5c2c5f289f5d950159a2b1382121ffd2f2d4d14613
MD5 e2340b05df436147fb36511289f060e5
BLAKE2b-256 5b9ae3134580d7a3c038c16aa6f2f092a3d95d75f31c561503ac26459fa73368

See more details on using hashes here.

File details

Details for the file django_basecoat-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_basecoat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce6934e16e41347cf48e27b583748fb260c39cbbfb5a3ed25a211f94714e21d1
MD5 c0895dc630ed6cf1b7918a61522814e2
BLAKE2b-256 c816ed70ebe3b1c464608e8587216f62845b1ca75a6bf65a507dbff938200d3c

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