LocalColorPalette

CompositionLocal for providing a ColorPalette of named semantic colors.

Shapes and composables can read LocalColorPalette.current to resolve role-based colors (primary, secondary, accent, etc.) for consistent theming across a scene.

Override with androidx.compose.runtime.CompositionLocalProvider to apply a custom palette:

val dark = ColorPalette(primary = IsoColor(30, 30, 30), background = IsoColor.BLACK)
CompositionLocalProvider(LocalColorPalette provides dark) {
IsometricScene { ... }
}

Defaults to ColorPalette with its built-in color defaults.