You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6.0 is a big release. The color engine is now generated from Google's upstream Kotlin source, the
library is split into one module per UI toolkit, and there are new adapters for Compose Unstyled,
Compose Fluent and kmpalette.
Important
6.0 has breaking changes, and some colors change even when your code compiles without changes.
Read the migration guide before upgrading.
New engine
material-color-utilities is no longer a hand-written port. It is generated from upstream's
Kotlin source at a pinned revision, and its output is tested against upstream's Java and Kotlin to
match ARGB for ARGB.
This also brings:
The 2026 color spec and the new CMF variant, available as PaletteStyle.Cmf(tertiarySeedColor)
SPEC_2025 as the default spec. Pass SPEC_2021 to keep the 5.x colors.
Nullable results where upstream has them, for example Contrast.lighter returns null instead
of -1.0
Modules
material-kolor is now several artifacts. Depend on the one for your toolkit:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
6.0 is a big release. The color engine is now generated from Google's upstream Kotlin source, the
library is split into one module per UI toolkit, and there are new adapters for Compose Unstyled,
Compose Fluent and kmpalette.
Important
6.0 has breaking changes, and some colors change even when your code compiles without changes.
Read the migration guide before upgrading.
New engine
material-color-utilitiesis no longer a hand-written port. It is generated from upstream'sKotlin source at a pinned revision, and its output is tested against upstream's Java and Kotlin to
match ARGB for ARGB.
This also brings:
PaletteStyle.Cmf(tertiarySeedColor)SPEC_2025as the default spec. PassSPEC_2021to keep the 5.x colors.Contrast.lighterreturnsnullinsteadof
-1.0Modules
material-koloris now several artifacts. Depend on the one for your toolkit:material-kolor-material3material-kolor-corematerial-kolor-unstyledmaterial-kolor-fluentmaterial-kolor-palettematerial-color-utilitiesOther changes
rememberTonalPalette,TonalPalette.toneColorandTonalPalette.onTonefor building your ownthemes from tonal palettes
PaletteStyleis now a sealed interface. It is@Serializableand hasparse,fromNameandKnownStyles.primaryoverride in the theme state now sets only the primary palette. The seed still drivesthe rest.
faster
(Colon in module name (
MaterialKolor:material-kolor) causes release AAB build failure on AGP 9.4.0+ (Entry name contains invalid characters) #542)*Ktconsumer keep rules. Consumers don't need to do anything.Deprecated
These will be removed in 7.0:
primaryinImageBitmaphelpers in core. Usematerial-kolor-paletteinstead.Builder
materialkolor.com was rewritten from scratch. It previews themes in
Material 3, Compose Unstyled, Compose Frts the code for each.
This discussion was created from the release 6.0.0-beta01.
All reactions