theme

Extension function for configuring theme within an AiutaUserInterfaceConfiguration.Builder.

This extension provides a convenient DSL for configuring the theme as part of the UI configuration setup.

val uiConfig = AiutaUserInterfaceConfiguration.Builder().apply {
theme {
color = AiutaColorTheme.Default()

button {
typography = AiutaButtonThemeTypography.Default()
shapes = AiutaButtonThemeShapes.Default()
}

image {
shapes = AiutaImageThemeShapes.Default()
icons = AiutaImageThemeIcons.Default()
}

// Configure other theme components...
}

actions = myActionHandler
}.build()

Return

The UI configuration builder for method chaining

Parameters

block

Configuration block for setting up the theme

See also