diff --git a/django_admin_react/conf.py b/django_admin_react/conf.py index ec8819d..5a123ab 100644 --- a/django_admin_react/conf.py +++ b/django_admin_react/conf.py @@ -20,6 +20,12 @@ from django.conf import settings as django_settings +# Built-in fallback for the ``--dar-primary`` accent color when the +# consumer hasn't set ``PRIMARY_COLOR`` AND their ``AdminSite`` has no +# ``site_primary_color`` attribute. Re-exported so ``views.py`` can +# pick up the same constant instead of stringifying its own. +DEFAULT_PRIMARY_COLOR = "#2563eb" + DEFAULTS: dict[str, Any] = { "ADMIN_SITE": "django.contrib.admin.site", # The list page size derives from the model's @@ -59,9 +65,16 @@ # ``--dar-primary`` CSS variable so a consumer can brand the admin with # no React rebuild. Must be a hex color (``#rgb`` / ``#rgba`` / # ``#rrggbb`` / ``#rrggbbaa``); anything else is rejected at render and - # falls back to this default, since the value is written into a - # ``