Low text contrast over light blue backgrounds in admin light theme
The Django admin’s light theme "primary" color is a very light shade of blue which doesn’t offer enough contrast when used with white text.
Here is a full contrast grid of the light theme color palette for reference. The problematic "light blue" combos I have identified are:
- Breadcrumbs text where the background --breadcrumbs-bg is light blue, and the text is either very light blue --breadcrumbs-fg, or white (both bad). We would need to either use a much darker shade of blue, or switch breadcrumbs text to a dark grey like --body-fg.
- Table "caption" headers, with light blue bg and a text of either --header-color light yellow for current app, or white --header-link-color, both bad. Here we might be able to resolve this by switching those headers to using the --header-bg / --secondary shade of blue. Or use dark grey --body-fg text.
- Fieldsets / modules h2 headers. Same as table caption headers.
- Choosers’ "chosen" header. Same as table caption headers.
- Non-"default" submit buttons. Here we won’t be able to use the secondary blue since it’s already used for default submit buttons. So we’d need to either change the primary color, or use a dark grey --body-fg text.
Here is a screenshot of a truncated form with those issues illustrated: https://code.djangoproject.com/raw-attachment/ticket/34036/34036.png
Attachments
(1)
- 34036.png
(216.7 KB
) - added by Thibaud Colas 2 years ago.
- Screenshot of the Django admin with color contrast issues highlighted in red
Download all attachments as:
.zip
Change History
(20)
Description: |
modified (diff)
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Mia Bajić
|
Status: |
new → assigned
|
Owner: |
changed from Mia Bajić to Nimra
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Patch needs improvement: |
set
|
Owner: |
Nimra removed
|
Status: |
assigned → new
|
Owner: |
set to Mariana
|
Status: |
new → assigned
|
Patch needs improvement: |
unset
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Screenshot of the Django admin with color contrast issues highlighted in red