Basic tasteful designs for your Django project, with sensible defaults.
Features:
- Themes for plain CSS, Tailwind 4, and Bootstrap 5
- Mobile support
- App layout for content with a complex UI
- Basic menu support
This project won't replace a proper design, but can help make your prototypes pretty.
Pairs particularly well with nanodjango.
To play with a live example, you can try the live demo, or download example.py and run with uv:
uvx --with django-style nanodjango run example.py
-
Install:
pip install django-style
-
Add it to
INSTALLED_APPS
in yoursettings.py
, and optionally configure it:INSTALLED_APPS = [ ... "django_style", ] STYLE_THEME = "tailwind" # or "simple" (default) or "bootstrap" STYLE_IS_APP = True # enable app layout (default is False)
or if using nanodjango:
app = Django( EXTRA_APPS=["django_style"], STYLE_THEME="tailwind" )
-
Extend
base.html
in your templates:{% extends "base.html" %} {% block content %} <p>Hello world</p> {% endblock %}