Colton Idle
12/01/2025, 8:13 PMText in material to be TitleLarge, what's the best way to do that?
Use ProvideTextStyle or a CompositionLocalProvider or something else at the top near my theme declaration?Kirill Grouchnikov
12/01/2025, 9:28 PMCompositionLocalProvider + LocalTextStyle provides to provide your own default text style.
However, there is no API to do this only for specific composables like Text. Doing the above will affect all composables that are implicitly relying on the default text style.Kirill Grouchnikov
12/01/2025, 9:29 PMText composable, along with a Lint rule to mandate its usage, and flag any usage of M3 variant as a build error.Colton Idle
12/01/2025, 10:00 PMKirill Grouchnikov
12/01/2025, 10:03 PMText composables (or any other ones). Here, you are redirecting all usages of bodyMedium to use titleLarge .Kirill Grouchnikov
12/01/2025, 10:05 PMKirill Grouchnikov
12/01/2025, 10:05 PMTitleLarge - all 15 / 30 of them.Kirill Grouchnikov
12/01/2025, 10:06 PMTypography object to the top-level material theme from https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]nMain/kotlin/androidx/compose/material3/MaterialTheme.kt;l=57Kyant
12/02/2025, 12:57 AMGrant Toepfer
12/02/2025, 1:27 AMCoty Saxman
12/02/2025, 3:23 AMtheme.merge(color = Color.Unspecified) being equivalent to theme.merge() is going to give someone somewhere quite a headache. It would make sense if it was fun Theme.merge(other: Theme) and ignored default values, but with individual named arguments it seems like a needless trap for anyone who didn't read the docs.Grant Toepfer
12/02/2025, 3:33 AMnull or .Unspecified so 🤷Alex Styl
12/02/2025, 7:12 AM