Feature summary: I want to be able to write a template style that checks if dark mode is used such as a dark or black theme of the mobile app and change the color of the text in a template from dark to white for readability of the text.
Use case(s): There is a problem with recognizing text that is formed by a template (https://uk.wikipedia.org/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Masklink) in the mobile app Wikipedia that uses a dark theme. That template uses inline CSS styling, so I tried to create a template style that will change color if a user uses dark mode. But the instruction provided here (https://www.mediawiki.org/wiki/Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis) doesn't work with sanitized CSS (template style of template). So for now, the text is unreadable in the dark theme of the mobile app.
The text in parenthesis is unreadable:
Benefits: Some templates have to have a specific color, so for readability, editors can write code that will modify the color and make it more accessible in dark mode.