I have a custom web part that I want to have styled correctly no matter what color theme is installed on the site. I have this working correctly for my button background colors like this:
.myButtons {
background-color: $ms-color-themePrimary;
}
.myButtons:hover {
background-color: $ms-color-themeDarkAlt;
}
My problem is that I need to know what foreground color to use. The stock web parts, for example, will change the foreground color to black or white depending on what color theme is selected and I'd like my web part to do the same so that users aren't forced to try to read white text on a yellow background or something.
Is there a variable to get the correct text color?