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.
Provide generated semantic colors, spacing, radii, typography, motion, and elevation to native components.
Apple availability
Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.
Native example
Mount the theme once near the application root. Read semantic roles from the native theme object instead of copying hexadecimal values into feature code.
AppContent()
.lumenTheme(.light)Reference
The primary shared and platform-specific options exposed by .lumenTheme.
| API | Values or type | Default | Description |
|---|---|---|---|
| theme | LumenTheme | .light | Selects the active native color scheme. |
| content | View | Required | Provides Lumen theme values to the descendant tree. |
Native behavior
Mount the theme once near the application root. Read semantic roles from the native theme object instead of copying hexadecimal values into feature code.
The active color scheme follows the platform environment unless the application chooses an explicit light or dark mode.
Shared component