Skip to main content

Modern dark theme for Django Admin

Project description

ColdBlue

ColdBlue is a modern, minimal dark theme for Django Admin.
It enhances the default admin UI with a clean design, dashboard stats, optional grouped navigation, and improved mobile usability — while staying fully compatible with Django’s core admin system.


Features

  • Modern dark UI (no JavaScript frameworks)
  • Dashboard statistics (model counts)
  • Optional grouped sidebar navigation
  • Mobile-friendly layout
  • Respects Django admin permissions
  • Drop-in app (no admin rewrites)

Installation

pip install coldblue

Add ColdBlue to your INSTALLED_APPS before django.contrib.admin:

INSTALLED_APPS = [
    "coldblue",
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
]

Configuration

Core Theme Settings

COLDBLUE_SETTINGS = {
    "ENABLE_STATS": True,
    "STATS_LIMIT": 6,
    "STAT_SORT": "count_desc",  # or "alpha" or "count_asc"
    "SITE_HEADER": "Admin Panel",
    "SITE_TITLE": "Admin Login",
    "INDEX_TITLE": "Dashboard",
}

Sidebar Configuration (Optional)

COLDBLUE_SIDEBAR = {
    "ENABLE": True,
    "SECTIONS": [
        {
            "label": "Authentication",
            "icon": "fa-user-shield",
            "models": [
                "auth.User",
                "auth.Group",
            ],
        },
        {
            "label": "Shop",
            "icon": "fa-box",
            "models": [
                "shop.Product",  # app.Model
                "shop.Category",
            ],
        },
    ],
}

If ENABLE=True and no SECTIONS are provided, ColdBlue will automatically group models by app label.


Icon Overrides (Optional)

COLDBLUE_ICON_OVERRIDES = {
    "user": "fa-user-shield",
    "product": "fa-box-open",
}

Fallback icon: fa-database


Dashboard

ColdBlue replaces the default admin index with:

  • Model cards
  • Optional statistics panel
  • Recent actions panel
  • Clean layout optimized for large and small screens

Mobile Support

  • Responsive layout
  • Sidebar adapts to small screens
  • No breaking admin functionality

Compatibility

  • Django 4.x, 5.x
  • Works with default admin templates
  • Does not override admin views or permissions

What ColdBlue Does NOT Do

  • No admin logic changes
  • No database migrations
  • No JavaScript-heavy UI frameworks

License

MIT License

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

coldblue-0.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

coldblue-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file coldblue-0.1.0.tar.gz.

File metadata

  • Download URL: coldblue-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for coldblue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e15410c5786254b9eacfa7eea4526b6b306f79802a48bd08c804fef1c5fec198
MD5 6972c66810ed6cb5744f17f06c6d1bc8
BLAKE2b-256 977d574f2a0e17fa64c71d2bb3a599b21d0139e846d7878cfdfe39ad2c94e479

See more details on using hashes here.

File details

Details for the file coldblue-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: coldblue-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for coldblue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab39d9cf696976d127731c38f2518b9f1551c0e13a99e3a32c17e934c9103a25
MD5 1660cfec0217a1be7a91f7a80c3b8889
BLAKE2b-256 c394806cfe1a9b79ae408169e2b1293659303bd395de51836567e2e1b4ca9470

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