#32018: Themeing support for django.contrib.admin using CSS variables -----------------------------------------------+------------------------ Reporter: Matthias Kestenholz | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: 3.1 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 1 UI/UX: 1 | -----------------------------------------------+------------------------ I propose using CSS variables for defining the colors used in the Django administration panel.
This should make it possible to replace the colors used inside the Django administration panel with a few lines of custom CSS and may also help with the further maintenance of third party apps such as https://github.com/fabiocaccamo/django-admin-interface/ The targeted browsers all support CSS variables, see https://docs.djangoproject.com/en/3.1/faq/admin/#what-browsers-are- supported-for-using-the-admin and https://caniuse.com/?search=css%20variables This should also make it easier to reuse colors in third party apps. Here's how this might look: https://github.com/matthiask/django/compare/f3901b5899d746dc5b754115d94ce9a045b4db0a...matthiask:mk /admin-css-variables (The final hunk in base.html would also belong into admin/css/base.css, but I have added the code elsewhere for the moment because it makes it easier to `sed` and `grep` my way through the changes.) -- Ticket URL: <https://code.djangoproject.com/ticket/32018> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.7fd857d718a30b72a73c47bc291abe82%40djangoproject.com.