AepColor

Data class representing colors for both light and dark themes in Experience Platform UI components.

Public Properties

Property
Type
Description
light
Color
The color to use in light theme mode.
dark
Color?
The color to use in dark theme mode.

Usage Example

data-slots=heading, code
data-repeat=1
data-languages=Kotlin

Kotlin

import com.adobe.marketing.mobile.aepcomposeui.uimodels.AepColor
import androidx.compose.ui.graphics.Color

val unreadBgColor = AepColor(
    light = Color(0xFFE3F2FD), // Light blue for light theme
    dark = Color(0xFF1E3A5F)   // Dark blue for dark theme
)