mattinger
12/20/2023, 3:17 PMColorSchemeKeyTokens.surface.toColor()
is considered better than just something like: MaterialTheme.colorScheme.surface
But given that all these key token enumerations are internal, i don’t see a huge benefit to consumers of the material library.Hristijan
12/20/2023, 3:27 PMmattinger
12/20/2023, 3:38 PMlightColorScheme
or darkColorScheme
. The actual class ColorSchemeKeyTokens is internal to the material3 library, and thus can’t be accessed by consumers. As such it provides little to no benefit outside of the library itself.
What i’m curious about is what are the perceived benefits inside of the library. We have our own custom design system, and i was considering whether to implement this pattern or not, or stick with people directly referencing the tokens via the colors class we keep in a composition localeygraber
12/20/2023, 3:42 PMmattinger
12/20/2023, 3:45 PMHristijan
12/20/2023, 3:54 PM