LocalLogColorScheme

CompositionLocal for providing the LogColorScheme used by the Console module's UI.

Provide this where your app already configures its MaterialTheme, so the console palette switches alongside your light/dark theme:

MaterialTheme(colorScheme = if (darkTheme) darkColorScheme() else lightColorScheme()) {
CompositionLocalProvider(
LocalLogColorScheme provides if (darkTheme) LogColorScheme.Dark else LogColorScheme.Light
) {
// ... DevView content ...
}
}

If never provided, the console falls back to LogColorScheme.Light/LogColorScheme.Dark chosen from the ambient MaterialTheme's surface luminance, and logs a one-time warning pointing at this CompositionLocal (see the "Theming" guide).

See also