Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Android docs
FoundationsAndroid

Text

Render native text with shared typography variants and semantic color tones.

Public APILumenTextAndroid / Compose

Native example

Use Text

Use the title and label roles for hierarchy, not as substitutes for application navigation semantics. Prefer the muted and soft tones for supporting copy.

Text rendered in the Android phone emulator Lumen playground
Verified runtime captureAndroid phone emulator
kotlin
LumenText(
    "Welcome back",
    variant = LumenTextVariant.Title,
    tone = LumenTextTone.Default
)

Reference

Public API

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

APIValues or typeDefaultDescription
textString / native text contentRequiredThe text content.
variantbody · caption · label · titlebodySelects the shared typography role.
tonedefault · soft · muted · success · warning · dangerdefaultSelects a semantic foreground role.
modifierNative layout or text stylingAdds platform-native layout and presentation overrides.

Native behavior

Design and accessibility

When to use it

Use the title and label roles for hierarchy, not as substitutes for application navigation semantics. Prefer the muted and soft tones for supporting copy.

Accessibility

Text remains native text, supports platform font scaling, and preserves the semantic meaning supplied by its surrounding view.

Shared component

Available on other platforms

React NativeApple / SwiftUI
Android docsCompose module