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.
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.
<LumenProvider scheme="system">
<AppContent />
</LumenProvider>Reference
The primary shared and platform-specific options exposed by LumenProvider.
| API | Values or type | Default | Description |
|---|---|---|---|
| scheme | "light" | "dark" | "system" | "system" | Selects the active native color scheme. |
| children | ReactNode | 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