API reference

SpatialTheme Function

Top-level composable that establishes the Meta Horizon UI Set theme for spatial panel content. Provides SpatialColorScheme, SpatialTypography, and SpatialShapes via CompositionLocal providers, and configures text selection colors and interaction indication to match the spatial design language.

Signature

fun SpatialTheme(
    colorScheme: SpatialColorScheme = SpatialTheme.colorScheme,
    typography: SpatialTypography = SpatialTheme.typography,
    shapes: SpatialShapes = SpatialTheme.shapes,
    content: () -> Unit,
)

Parameters

colorScheme: SpatialColorScheme
typography: SpatialTypography
content: () -> Unit