API reference

UiSetTheme Object

Reads the design foundation installed by the UiSetTheme composable of the same name.
Each accessor resolves against the nearest enclosing theme, so nesting UiSetTheme changes what descendants read here. Outside any theme UiSetTheme.colorScheme, UiSetTheme.typography, UiSetTheme.shapes, and UiSetTheme.dimensions return the built-in defaults rather than failing — which is why an unthemed component renders plausibly while ignoring app customization — but UiSetTheme.indications throws, because no config exists until a theme derives one from a color scheme.

Signature

object UiSetTheme

Properties

colorScheme : ColorScheme
[Get]
Semantic container, content, status, interaction, and progress colors.
Signature
@get:Composable @get:ReadOnlyComposable val colorScheme: ColorScheme
dimensions : Dimensions
[Get]
Density-aware component geometry and spacing.
Signature
@get:Composable @get:ReadOnlyComposable val dimensions: Dimensions
indication : Indication
[Get]
The joint indication the theme installs as Compose's LocalIndication, for custom clickables that manage no clipping boundary of their own. Reach the split UISet policies through UiSetTheme.indications instead.
Signature
@get:Composable @get:ReadOnlyComposable val indication: Indication
indications : UiSetIndicationConfig
[Get]
Press, hover, and focus policies, split around the clipping boundary and offered per container context. Components select a policy and context; see UiSetIndicationConfig.
Signature
@get:Composable @get:ReadOnlyComposable val indications: UiSetIndicationConfig
shapes : Shapes
[Get]
Component shape roles.
Signature
@get:Composable @get:ReadOnlyComposable val shapes: Shapes
typography : Typography
[Get]
Semantic text styles.
Signature
@get:Composable @get:ReadOnlyComposable val typography: Typography