From 9c06765c51b877babdbbbac56d5b8026184cbf0c Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Mon, 12 Jan 2026 10:33:33 +0530 Subject: [PATCH] Fix #1422: Fix unreadable markdown tables in dark mode Previously, tables in rendered READMEs had low contrast (white on white or black on black) in dark mode. This change adds high-contrast colors using the Hackage purple theme to ensure readability. --- datafiles/static/hackage.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/datafiles/static/hackage.css b/datafiles/static/hackage.css index 5cdf02300..474dda3c5 100644 --- a/datafiles/static/hackage.css +++ b/datafiles/static/hackage.css @@ -1307,3 +1307,16 @@ a.deprecated[href]:visited { background: #222; } } + + +@media (prefer-color-scheme: dark) { + thead th{ + background-color: #5E5184; + color: #e0e0e0; + } + + tbody td{ + background-color: #926efa; + color: white; + } +} \ No newline at end of file