How to set dark mode except for text?

I like dark mode but the problem is that it is difficult to read text on a black background so that when I read in dark mode, my eyes become watery.
So, is there a way to exclude texts from darkmode, such that there is a white box behind texts..?