How to change text highlight colour only in dark mode?

Hello, I have the latest version of Anki on MacOs. Basically, I have a lot of highlights on my flashcards, all in bright yellow. The problem is that when Anki goes into dark mode and the text colour inverts to white, I can’t see the white text against the light yellow background. Is it possible to make it so that just highlighted text stays black?

You can add the following styling to your card template to change the text to black on the highlighted elements, provided you used a consistent color for highlighting.

.night-mode span[style="background-color: rgb(255, 255, 127);"] { color: black; }

Thank you!! Life saver

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.