Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FoundationsAndroid

Theme

Provide generated semantic colors, spacing, radii, typography, motion, and elevation to native components.

Public APILumenThemeAndroid / Compose

Native example

Use Theme

Mount the theme once near the application root. Read semantic roles from the native theme object instead of copying hexadecimal values into feature code.

Theme rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenTheme(darkTheme = false) {
    AppContent()
}

Reference

Public API

The primary shared and platform-specific options exposed by LumenTheme.

APIValues or typeDefaultDescription
darkThemeBooleanSystem settingSelects the active native color scheme.
content@Composable () -> UnitRequiredProvides Lumen theme values to the descendant tree.

Native behavior

Design and accessibility

When to use it

Mount the theme once near the application root. Read semantic roles from the native theme object instead of copying hexadecimal values into feature code.

Accessibility

The active color scheme follows the platform environment unless the application chooses an explicit light or dark mode.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module