CarbonDesignSystem

fun CarbonDesignSystem(theme: Theme = if (isSystemInDarkTheme()) Gray100Theme else WhiteTheme, uiShellInlineTheme: Theme = theme, layer: Layer = Layer.Layer00, content: @Composable () -> Unit)

Entry point for a content using the Carbon Design System.

Use this composable at the top of your view hierarchy to provide a Carbon Theme to the composition.

Parameters

theme

The Theme to provide to the composition. Defaults to WhiteTheme if the system is in light mode, or Gray100Theme if not.

uiShellInlineTheme

The Theme to provide to the composition for UI Shell components. Defaults to theme.

layer

The Layer token to apply to the composition.

content

Your UI content.