rememberDynamicColors
Generates one scheme from seedColor and remembers every MaterialKolorTokens token paired with its color.
Use this for one color scheme at a time, such as a custom scheme or a theme built with buildTheme. For light and dark together, rememberDynamicLightDarkColors writes every argument once.
colorScheme(Sepia) {
properties[MaterialKolorTokens.colors] = rememberDynamicColors(seedColor = Color(0xff704214), isDark = false)
}The parameters are the ones rememberDynamicScheme takes. isDark has no default because where you call this decides the mode, not the system setting.
Return
The remembered token values, the same map DynamicScheme.toThemeValues gives.
Parameters
The color to base the scheme on.
Whether the scheme should be dark or light.
The primary color of the scheme.
The secondary color of the scheme.
The tertiary color of the scheme.
The neutral color of the scheme.
The neutral variant color of the scheme.
The error color of the scheme.
The style of the scheme.
The contrast level of the scheme.
The version of the color specification to use.
The platform to use for the scheme.