I am seeking guidance on efficiently utilizing color schemes. While we understand that MaterialTheme.colorScheme allows us to apply colors uniformly across various components, I'm curious if there are specific recommendations for leveraging each aspect of the color scheme. For instance, what is the ideal use case for the primary color?
How about the onPrimary color?
And what role does the primaryContainer color serve?
here is all of the ColorScheme attributes:
ColorScheme(
primary: Color,
onPrimary: Color,
primaryContainer: Color,
onPrimaryContainer: Color,
inversePrimary: Color,
secondary: Color,
onSecondary: Color,
secondaryContainer: Color,
onSecondaryContainer: Color,
tertiary: Color,
onTertiary: Color,
tertiaryContainer: Color,
onTertiaryContainer: Color,
background: Color,
onBackground: Color,
surface: Color,
onSurface: Color,
surfaceVariant: Color,
onSurfaceVariant: Color,
surfaceTint: Color,
inverseSurface: Color,
inverseOnSurface: Color,
error: Color,
onError: Color,
errorContainer: Color,
onErrorContainer: Color,
outline: Color,
outlineVariant: Color,
scrim: Color
)
Maybe somebody has a guideline for using it?
Thanks
In short,
Secondary,
Tertiary
Read this for details