I have a theme component with different colors for dark and light themes. I have been using dark-light-choose function to choose between the light and dark colors, but it is no longer working after the color variable update. Specifically dark-light-choose always returns light color for the theme component, even if a dark color scheme has been selected. Here’s a short example: if I put
$d-color: dark-light-choose(#fff, #000);
:root {
--d-color: #{$d-color};
}
in color definitions and
.d-header {
background: var(--d-color);
}
in common, I will always end up with a white header regardless of the color scheme in use. Any ideas why this is not working?