Is it possible to get light and dark variants for ...
# compose-desktop
i
Is it possible to get light and dark variants for a
Color
?
k
This is already done in the material package. The high-level idea is that you have a composition local that provides semantically named colors to the whole tree, and that composition local is initialized with the mapping of those semantic names to the actual ARGB values - based on the user / system preference for light, dark or dynamic (on Android S+) colors.
https://m3.material.io/styles/color/the-color-system/tokens has more info on how Material 3 does color tokens
i
Thanks, I'll take a look