Is there a way to access the text color of both the default and dark themes using design tokens?
I am looking for a method to seamlessly switch between the two color schemes based on specific conditions, without having to change the entire theme.
For instance:
if (condition) return currentThemeColorPrimaryText
else return oppositeThemeColorPrimaryText
This means that the "current theme" color primary text should display the default color with the default theme and the dark color with the dark theme. Conversely, the "opposite theme" color primary text should show the dark color with the default theme and the default color with the dark theme.