So I guess the solution when designing a dark theme and avoid having to use CSS is to make sure you reverse the color palette to prevent those issues. paletteColor1 should be the darkest and paletteColor5 the lightest. Same for accent and neutral colors.
Then you redefine basic colors as needed from your palette colors mostly swapping the 5s with 1s and 4s with 2s.
All other style properties group should be using basic colors rather than palette colors, just fix those that don't.
This should make sure the rare cases where color palette usage is hard coded should still remain readable. It also helps keeping you sane while designing your style
If you want to customise the table itself I guess you should look at add-ons overriding...