Currently, the text color is determined by the theme (light/dark). However, whenever the user selects a different background color using the {bg: } tag, the text may not be readable due to lack of contrast.
In those cases, the background luminosity should be determined in order to choose either the black or white text color.
Currently, the text color is determined by the theme (light/dark). However, whenever the user selects a different background color using the {bg: } tag, the text may not be readable due to lack of contrast. In those cases, the background luminosity should be determined in order to choose either the black or white text color.