WhiteLabelColorScheme
Customizable color scheme for White Label theme.
This class allows customization of semantic colors used throughout OUDS components. Any unspecified color (set to OudsLightDarkColor.Unspecified or Color.Unspecified) will automatically fall back to the corresponding WireframeTheme color.
Color Categories
The color scheme is organized into these categories:
action- Interactive states (enabled, hover, pressed, focus, loading, disabled, selected)ai- AI-specific feature colorsalways- Theme-invariant colors (black, white, onBlack, onWhite)background- Background surfaces (primary, secondary, tertiary, inverse)border- Borders and outlines (default, emphasized, brand, status, focus)content- Text and icons (default, muted, brand, status, onAction, onBrand, onStatus)opacity- Transparent overlaysoverlay- Overlay surfaces (backdrop, dropdown, tooltip, modal, floating)repository- Raw color repository for building custom semantic tokenssurface- Container surfaces (brand, status)
Usage Example
val customColorScheme = WhiteLabelColorScheme(
action = WhiteLabelColorScheme.Action(
enabled = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784)),
pressed = OudsLightDarkColor(Color(0xFF0D3D11), Color(0xFFC8E6C9)),
hover = OudsLightDarkColor(Color(0xFF2E7D32), Color(0xFF66BB6A))
),
content = WhiteLabelColorScheme.Content(
brandPrimary = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784)),
onBrand = WhiteLabelColorScheme.Content.OnBrand(
primary = OudsLightDarkColor(Color.White, Color.Black)
)
),
surface = WhiteLabelColorScheme.Surface(
brand = WhiteLabelColorScheme.Surface.Brand(
primary = OudsLightDarkColor(Color(0xFF1B5E20), Color(0xFF81C784))
)
)
)
OudsTheme(theme = WhiteLabelTheme(colorScheme = customColorScheme)) {
// Your branded app UI
}Parameters
Action colors for interactive states.
AI-specific feature colors.
Colors that remain constant regardless of theme mode.
Background colors for surfaces.
Border and outline colors.
Content colors for text and icons.
Opacity and transparency colors.
Overlay surface colors.
Raw color repository.
Surface colors for containers.
Constructors
Types
Action colors for interactive states like buttons, links, and selections.
AI-specific feature colors for AI-powered components.
Background colors for surfaces at different elevations.
Border and outline colors for component edges and focus indicators.
Content colors for text, icons, and graphical elements.
Opacity and transparency colors for overlays and scrim effects.
Overlay surface colors for elevated UI elements.
Raw color repository providing foundational color values.
Surface colors for containers and backgrounds.