OudsTheme

fun OudsTheme(theme: OudsThemeContract, darkThemeEnabled: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit)

Applies the OUDS theme to the composable hierarchy.

Use this at the top of your application instead of MaterialTheme. Since OUDS supports multiple themes, you must provide the specific theme implementation used by your application.

Parameters

theme

The theme configuration to apply. It must implement OudsThemeContract (e.g., OrangeTheme, SoshTheme).

darkThemeEnabled

Controls whether the dark theme is enabled. Defaults to the system setting.

content

The content to which the theme will be applied.