toThemeValues
Every MaterialKolorTokens token paired with the color this scheme gives it.
Use this when the theme already has a scheme, for example one pinned in application state. For a scheme generated from a seed inside the theme, rememberDynamicColors also remembers the result.
val AppTheme = buildThemeV2 {
properties[MaterialKolorTokens.colors] = scheme.toThemeValues()
}Content copied to clipboard
Every MaterialKolorTokens token paired with the color these roles give it.
val kolors = MaterialKolors(scheme, isAmoled = true)
properties[MaterialKolorTokens.colors] = kolors.toThemeValues()Content copied to clipboard