WhiteLabelMaterialColorScheme
Customizable Material 3 color scheme for White Label theme.
Allows customization of Material 3 color properties used by Jetpack Compose Material components. Unspecified colors fall back to WireframeTheme Material colors.
Usage Example
val customMaterialColors = WhiteLabelMaterialColorScheme(
primary = OudsLightDarkColor(Color(0xFF6200EE), Color(0xFFBB86FC)),
primaryContainer = OudsLightDarkColor(Color(0xFFE1BEE7), Color(0xFF3700B3)),
onPrimary = OudsLightDarkColor(Color.White, Color.Black),
surface = OudsLightDarkColor(Color.White, Color(0xFF121212)),
onSurface = OudsLightDarkColor(Color.Black, Color.White)
)
WhiteLabelTheme(materialColorScheme = customMaterialColors)Parameters
The primary color for main app actions.
Color for text and icons displayed on the primary color.
Background color for components using primary color.
Color for text and icons on primaryContainer.
Primary color inverted for inverse surfaces.
The secondary color for less prominent actions.
Color for text and icons on secondary color.
Background color for components using secondary color.
Color for text and icons on secondaryContainer.
Accent color for contrasting elements.
Color for text and icons on tertiary color.
Background color for components using tertiary color.
Color for text and icons on tertiaryContainer.
The app background color.
Color for text and icons on background.
Background color for surfaces like cards and sheets.
Color for text and icons on surface.
Alternative surface color for subtle differentiation.
Color for text and icons on surfaceVariant.
Color used to tint surfaces.
Surface color for inverse surfaces.
Color for text and icons on inverseSurface.
Color for error states and destructive actions.
Color for text and icons on error color.
Background color for error components.
Color for text and icons on errorContainer.
Color for borders and dividers.
Alternative outline color for subtle differentiation.
Color for scrims (semi-transparent overlays).
Brighter surface color variant.
Dimmer surface color variant.
Default container surface color.
High-emphasis container surface color.
Highest-emphasis container surface color.
Low-emphasis container surface color.
Lowest-emphasis container surface color.
Primary color that doesn't change with theme.
Dimmed variant of primaryFixed.
Color for text and icons on primaryFixed.
Alternative color for content on primaryFixed.
Secondary color that doesn't change with theme.
Dimmed variant of secondaryFixed.
Color for text and icons on secondaryFixed.
Alternative color for content on secondaryFixed.
Tertiary color that doesn't change with theme.
Dimmed variant of tertiaryFixed.
Color for text and icons on tertiaryFixed.
Alternative color for content on tertiaryFixed.