expressiveLightColorScheme
Function
Common
@ExperimentalMaterial3ExpressiveApi
fun expressiveLightColorScheme() =
lightColorScheme(
onPrimaryContainer = PaletteTokens.Primary30,
onSecondaryContainer = PaletteTokens.Secondary30,
onTertiaryContainer = PaletteTokens.Tertiary30,
onErrorContainer = PaletteTokens.Error30,
)
Returns a light Material color scheme.
The default color scheme for MaterialExpressiveTheme
. For dark mode, use darkColorScheme
.
Example of MaterialExpressiveTheme toggling expressiveLightColorScheme and darkTheme.
Code Examples
MaterialExpressiveThemeColorSchemeSample
@OptIn(ExperimentalMaterial3ExpressiveApi::class)
@Composable
fun MaterialExpressiveThemeColorSchemeSample() {
@Composable
fun MyMaterialTheme(content: @Composable () -> Unit) {
MaterialExpressiveTheme(
colorScheme =
if (isSystemInDarkTheme()) darkColorScheme() else expressiveLightColorScheme()
) {
content()
}
}
}