According to the documentation, Retool will automatically change text to be the more legible of the dark vs. light colors when using a custom theme.
I have a dark accent color, and the date picker highlight seems to not switch to a light color when selected. It instead uses one text color during across the entire component, despite subcomponents having different background colors.