WhiteLabelTheme
The White Label theme.
This theme extends WireframeTheme to provide a customizable foundation for white-labeling applications. Unlike the Wireframe theme which uses the Shantell Sans font, the White Label theme uses the default font family, making it ideal for applications that need a neutral starting point with custom branding.
The White Label theme can be customized in several ways:
Identifier: Provide a unique identifier to distinguish between multiple White Label theme instances.
Font family: Provide a custom WhiteLabelFontFamily implementation.
Color scheme: Pass a custom WhiteLabelColorScheme to override semantic color values.
Material color scheme: Pass a custom WhiteLabelMaterialColorScheme to override Material 3 color mappings.
Borders: Pass a custom WhiteLabelBorders to override border properties like radius.
Default Usage
By default, the White Label theme uses WireframeTheme appearance with the default font family:
OudsTheme(theme = WhiteLabelTheme()) {
// Your composables here
}Customization Example
val customColorScheme = WhiteLabelColorScheme(
action = WhiteLabelColorScheme.Action(
enabled = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784))
),
content = WhiteLabelColorScheme.Content(
brandPrimary = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784))
)
)
val customMaterialColors = WhiteLabelMaterialColorScheme(
primary = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784)),
onPrimary = OudsLightDarkColor(Color.White, Color.Black)
)
val customBorders = WhiteLabelBorders(
radius = WhiteLabelBorders.Radius(default = 12.0.dp)
)
val customFont = WhiteLabelFontFamily { locale ->
FontFamily(
Font(R.font.brand_regular, FontWeight.Normal),
Font(R.font.brand_bold, FontWeight.Bold)
)
}
OudsTheme(
theme = WhiteLabelTheme(
identifier = "MyBrand",
colorScheme = customColorScheme,
materialColorScheme = customMaterialColors,
borders = customBorders,
whiteLabelFontFamily = customFont
)
) {
// Your fully branded app
}Parameters
An optional identifier to distinguish between multiple White Label theme instances. Useful for logging, analytics, and conditional logic. Defaults to null.
The font family to use. Defaults to WhiteLabelFontFamily.Default which uses the default font family.
The color scheme to use. Defaults to WhiteLabelColorScheme which inherits from Wireframe colors.
The Material 3 color scheme. Defaults to WhiteLabelMaterialColorScheme which inherits from Wireframe Material colors.
The border properties. Defaults to WhiteLabelBorders which inherits from Wireframe border properties.