#36851: Add dark mode support for Django debug error pages
---------------------------------+----------------------------------------
Reporter: Ekin ErtaƧ | Owner: Kundan Yadav
Type: New feature | Status: assigned
Component: Error reporting | Version: 6.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
---------------------------------+----------------------------------------
Comment (by Ekin ErtaƧ):
Hi @Kundan Yadav,
I've implemented dark mode support for Django's debug error pages as
described in this ticket. The implementation includes:
**Changes:**
- Added `@media (prefers-color-scheme: dark)` CSS to both
`technical_500.html` and `technical_404.html`
- Used a carefully chosen color palette for readability and consistency
- All existing light mode functionality is preserved
- Added comprehensive tests to verify dark mode CSS presence
**Testing:**
- All tests pass (including 2 new dark mode tests)
- Verified in both 500 and 404 error pages
- No breaking changes
**Pull Request:**
I've created a pull request at:
https://github.com/ekinertac/django/pull/new/ticket-36851-dark-mode-error-
pages
The branch is ready for review. Let me know if you need any adjustments!
--
Ticket URL: <https://code.djangoproject.com/ticket/36851#comment:2>
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b99e3b12e-a59b0bdc-30e2-41d8-a78e-a26f83e60d27-000000%40eu-central-1.amazonses.com.