Hi everyone. I created a color palette library tha...
# compose
k
Hi everyone. I created a color palette library that allows you to customize and extend M3 ColorScheme in Compose, supporting Android 5.0+. https://github.com/Kyant0/Monet Just provide a key color, it will generate tonal palettes with several styles. You can map the generated palettes to M3's by using
dynamicColorScheme()
, and set it to
MaterialTheme
. (Don't forget to provide
LocalTonalPalettes
first.) You can also get a dynamic color by using
40.a1 withNight 80.a1
(100 means white, 0 means black), this is very brief. There's a demo you can play with.
🎨 7
K 7
💯 4