LocalContentColor Composition Local
The foreground color
Text and
Icon fall back to.
UiSetTheme seeds it with the color legible on the app background, and every container carrying its own foreground colors —
Surface, cards, buttons, tiles, side-nav items — re-provides its own, so content nested in one stays legible without being passed a color.
It is the last step of the resolution order, not the first:
Text prefers an explicit
color, then the color on its
style, and reads this only when both are Color.Companion.Unspecified. Read
metavrx.uiset.compose.theme.LocalContentColors for the full primary/secondary/icon triple.
Compose Foundation defines no equivalent, so this is UISet's own — not androidx.compose.material3.LocalContentColor. The names collide but these are separate CompositionLocal instances of the same value type, so a Material import here compiles cleanly and then resolves against the wrong provider, rendering unthemed. Defaults to Color.Companion.Black outside a theme.
Type: ProvidableCompositionLocal
val LocalContentColor: ProvidableCompositionLocal<Color>