Material You for Kotlin 0.1.0 is out!
As part of Material3, released ~3 years ago, Google implemented a
theme builder which dynamically generates primary/secondary/ternary/… color variants from a small set of user-defined colors. This algorithm, named Material You, can also simply be used to generate nice matching color variants for any other kind of projects.
Google released the algorithm for multiple languages, including Java, but not Kotlin. So, I'm porting it to Kotlin Multiplatform.
In this first release, all Java code has been ported to Kotlin literally. In the next versions, I will start adapting it slowly to be more Kotlin idiomatic (using value classes instead of integers), extension functions instead of utils classes… As well as
cleaning up the code. Some modifications I want to make are already listed in the
issue tracker, if you want to help.
Changelog •
Repository